aboutsummaryrefslogtreecommitdiff
path: root/smelt/glfw/smelt_internal.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-12-27 23:25:09 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-12-27 23:25:09 +0800
commitb13f72857af93489f535b84d62882f681dc84a73 (patch)
treebfdfccac810a9cb76bd7a416d0a650fb0ee36555 /smelt/glfw/smelt_internal.hpp
parent0900cc583cc5e51b7c6b378de93cca29e11cb0e9 (diff)
downloadSMELT-b13f72857af93489f535b84d62882f681dc84a73.tar.xz
Fix stupid crashes.
Diffstat (limited to 'smelt/glfw/smelt_internal.hpp')
-rw-r--r--smelt/glfw/smelt_internal.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/smelt/glfw/smelt_internal.hpp b/smelt/glfw/smelt_internal.hpp
index 35251e2..9f51838 100644
--- a/smelt/glfw/smelt_internal.hpp
+++ b/smelt/glfw/smelt_internal.hpp
@@ -20,6 +20,7 @@
#include <cstdarg>
#include <dirent.h>
#include <unistd.h>
+#define GLEW_STATIC
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#ifndef ENABLE_DUMB
@@ -186,12 +187,12 @@ public:
char logFile[256];
int limfps;
bool hideMouse,noSuspend;
- GLuint IndexBufferObject;
TOpenGLDevice *pOpenGLDevice;
smVertex *vertexArray;
smVertex *vertexBuf;
GLushort *indexBuf;
+ GLuint IndexBufferObject;
TRenderTargetList *targets;
TRenderTargetList *curTarget;
TTextureList *textures;