Don't explicitly create a GL context since SDL_CreateWindowAndRenderer does it internally.

Having two GL contexts causes rendering problems on Ubuntu.  Fixes #521
This commit is contained in:
Graham Pentheny 2022-10-16 11:59:25 -04:00 committed by Graham Pentheny
parent 96dc90b6ff
commit 0d1cbd3d67

View File

@ -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"))
{