Kaynağa Gözat

allow non-static glew include path

Palana 12 yıl önce
ebeveyn
işleme
26397c7782
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      libobs-opengl/gl-subsystem.h

+ 4 - 0
libobs-opengl/gl-subsystem.h

@@ -20,7 +20,11 @@
 #include "util/darray.h"
 #include "graphics/graphics.h"
 #include "graphics/matrix4.h"
+#ifdef GLEW_STATIC
 #include "glew/include/GL/glew.h"
+#else
+#include <GL/glew.h>
+#endif
 #include "gl-helpers.h"
 #include "gl-exports.h"