Skip to content

Commit

Permalink
Merge pull request #304 from OneLoneCoder/patch-ogl33
Browse files Browse the repository at this point in the history
fix glXSwapInternalEXT in Renderer_OGL33
  • Loading branch information
OneLoneCoder authored Nov 9, 2022
2 parents d8a80d1 + 7bc37ec commit 6120b5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions olcPixelGameEngine.h
Original file line number Diff line number Diff line change
Expand Up @@ -4333,7 +4333,7 @@ namespace olc
wglMakeCurrent(glDeviceContext, glRenderContext);

// Set Vertical Sync
locSwapInterval = OGL_LOAD(locSwapInterval_t, "wglSwapIntervalEXT");
locSwapInterval = OGL_LOAD(locSwapInterval_t, wglSwapIntervalEXT);
if (locSwapInterval && !bVSYNC) locSwapInterval(0);
bSync = bVSYNC;
#endif
Expand All @@ -4353,7 +4353,7 @@ namespace olc
XGetWindowAttributes(olc_Display, *olc_Window, &gwa);
glViewport(0, 0, gwa.width, gwa.height);

locSwapInterval = OGL_LOAD(locSwapInterval_t, "glXSwapIntervalEXT");
locSwapInterval = OGL_LOAD(locSwapInterval_t, glXSwapIntervalEXT);

if (locSwapInterval == nullptr && !bVSYNC)
{
Expand Down

0 comments on commit 6120b5f

Please sign in to comment.