Skip to content

Commit

Permalink
fix glXSwapInternalEXT in Renderer_OGL33
Browse files Browse the repository at this point in the history
  • Loading branch information
Moros1138 committed Oct 28, 2022
1 parent a154efb commit 7bc37ec
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 @@ -4262,7 +4262,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 @@ -4282,7 +4282,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 7bc37ec

Please sign in to comment.