Update ImGui GLFW and OpenGL 3.x backends.

The new embedded ImGui OpenGL loader has been extended with a couple of
functions and definitions needed by TracyTexture.cpp.
This commit is contained in:
Bartosz Taudul
2021-08-22 13:11:26 +02:00
parent 30445b656f
commit 673dfd0f02
14 changed files with 1228 additions and 8874 deletions

View File

@@ -6,13 +6,13 @@
#include <imgui.h>
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include "imgui_impl_opengl3_loader.h"
#include <mutex>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <unordered_map>
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include <memory>
#include <sys/stat.h>
@@ -22,6 +22,10 @@
# include "../nfd/nfd.h"
#endif
#ifdef _WIN32
# include <windows.h>
#endif
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#include "stb_image.h"
@@ -256,7 +260,6 @@ int main( int argc, char** argv )
s_glfwWindow = window;
glfwMakeContextCurrent(window);
glfwSwapInterval(1); // Enable vsync
gl3wInit();
glfwSetWindowRefreshCallback( window, WindowRefreshCallback );
#ifdef _WIN32