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:
parent
96dc90b6ff
commit
0d1cbd3d67
@ -127,7 +127,6 @@ int main(int /*argc*/, char** /*argv*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
SDL_SetWindowPosition(window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||||
SDL_GL_CreateContext(window);
|
|
||||||
|
|
||||||
if (!imguiRenderGLInit("DroidSans.ttf"))
|
if (!imguiRenderGLInit("DroidSans.ttf"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user