shithub: cstory

Download patch

ref: 90ffbacd29a110fb0627202abca5e5a1dafd43ec
parent: 4769397c7ac45c074e88208dcefd585c7c8f3c63
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Jul 31 19:07:45 EDT 2019

Put OpenGL in 'forward-compatible' mode

Disables deprecated functionality

--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -172,6 +172,7 @@
 SDL_Window* Backend_CreateWindow(const char *title, int width, int height)
 {
 	SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
+	SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG);
 	SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
 	SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);