Browse Source

Fixed Windows goofy macros

Zachary Lund 12 năm trước cách đây
mục cha
commit
001f0b10a4
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      libobs-opengl/gl-subsystem.c

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

@@ -19,6 +19,10 @@
 #include <graphics/matrix3.h>
 #include <graphics/matrix3.h>
 #include "gl-subsystem.h"
 #include "gl-subsystem.h"
 
 
+/* Goofy Windows.h macros need to be removed */
+#undef far
+#undef near
+
 #ifdef _DEBUG
 #ifdef _DEBUG
 /* Tables for OpenGL debug */
 /* Tables for OpenGL debug */
 static const char* debug_source_table[] = {
 static const char* debug_source_table[] = {