From 3bb4fda47a165129933944d05252f5c8e1a24784 Mon Sep 17 00:00:00 2001 From: Jeff Hutchinson Date: Fri, 25 Mar 2016 21:11:42 -0400 Subject: [PATCH] SDL epoxy stuff. --- Engine/source/platformSDL/sdlPlatformGL.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Engine/source/platformSDL/sdlPlatformGL.cpp b/Engine/source/platformSDL/sdlPlatformGL.cpp index b71846d8b..bc663cef6 100644 --- a/Engine/source/platformSDL/sdlPlatformGL.cpp +++ b/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)