-#ifdef HAVE_SDL2
- // You can uncomment this if you want to try a core context.
- // For Mesa, you can get the same effect by doing
- //
- // export MESA_GL_VERSION_OVERRIDE=3.1FC
- //
- // before running tests.
-// SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
-// SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
-// SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
+ // Use a core context, because Mesa only allows certain OpenGL versions in core.
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
+ SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
+
+ // See also init.cpp for how to enable debugging.
+// SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);
+