1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-24 07:40:22 +01:00

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