From 0d1cbd3d6755712325f3c6278542174df5dd9cb8 Mon Sep 17 00:00:00 2001 From: Graham Pentheny Date: Sun, 16 Oct 2022 11:59:25 -0400 Subject: [PATCH] Don't explicitly create a GL context since SDL_CreateWindowAndRenderer does it internally. Having two GL contexts causes rendering problems on Ubuntu. Fixes #521 --- RecastDemo/Source/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/RecastDemo/Source/main.cpp b/RecastDemo/Source/main.cpp index 270c2af..1a31e75 100644 --- a/RecastDemo/Source/main.cpp +++ b/RecastDemo/Source/main.cpp @@ -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")) {