瀏覽代碼

Fixed Windows goofy macros

Zachary Lund 12 年之前
父節點
當前提交
001f0b10a4
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      libobs-opengl/gl-subsystem.c

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

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