Skip to content

Commit

Permalink
Don't explicitly create a GL context since SDL_CreateWindowAndRendere…
Browse files Browse the repository at this point in the history
…r does it internally.

Having two GL contexts causes rendering problems on Ubuntu.  Fixes #521
  • Loading branch information
grahamboree committed Oct 26, 2022
1 parent 96dc90b commit 0d1cbd3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion RecastDemo/Source/main.cpp
Expand Up @@ -127,7 +127,6 @@ int main(int /*argc*/, char** /*argv*/)
}

SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
SDL_GL_CreateContext(window);

if (!imguiRenderGLInit("DroidSans.ttf"))
{
Expand Down

0 comments on commit 0d1cbd3

Please sign in to comment.