浏览代码

SDL epoxy stuff.

Jeff Hutchinson 9 年之前
父节点
当前提交
3bb4fda47a
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Engine/source/platformSDL/sdlPlatformGL.cpp

+ 9 - 0
Engine/source/platformSDL/sdlPlatformGL.cpp

@@ -2,6 +2,10 @@
 #include "windowManager/sdl/sdlWindow.h"
 #include "console/console.h"
 
+#ifdef TORQUE_OS_WIN
+#include "gfx/gl/tGL/tWGL.h"
+#endif
+
 namespace PlatformGL
 {
 
@@ -64,6 +68,11 @@ namespace PlatformGL
            Con::printf( err );
            AssertFatal(0, err );
        }
+
+       #ifdef TORQUE_OS_WIN
+		    // JTH: Update the internals of epoxy on windows.
+		    epoxy_handle_external_wglMakeCurrent();
+       #endif
    }
 
    void setVSync(const int i)