Examples: OpenGL2 example doesn't need Glew

This commit is contained in:
ocornut 2015-02-27 10:05:06 +00:00
parent 40b04a3701
commit 37d8d5c5be

View File

@ -10,9 +10,7 @@
#include "../../imgui.h" #include "../../imgui.h"
#include <stdio.h> #include <stdio.h>
// Glfw/Glew // Glfw
#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT)) #define OFFSETOF(TYPE, ELEMENT) ((size_t)&(((TYPE *)0)->ELEMENT))
@ -141,8 +139,6 @@ void InitGL()
glfwSetMouseButtonCallback(window, glfw_mouse_button_callback); glfwSetMouseButtonCallback(window, glfw_mouse_button_callback);
glfwSetScrollCallback(window, glfw_scroll_callback); glfwSetScrollCallback(window, glfw_scroll_callback);
glfwSetCharCallback(window, glfw_char_callback); glfwSetCharCallback(window, glfw_char_callback);
glewInit();
} }
void LoadFontsTexture() void LoadFontsTexture()