shithub: cstory

Download patch

ref: ae8437009dc6471987f4c893a763760c41ed7975
parent: 006a20b9149b514ba389b6da0401f21527c678b5
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Oct 25 21:54:43 EDT 2019

Correct return values in OpenGL3's Backend_Init

--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -289,11 +289,11 @@
 	context = SDL_GL_CreateContext(window);
 
 	if (glewInit() != GLEW_OK)
-		return FALSE;
+		return NULL
 
 	// Check if the platform supports OpenGL 3.2
 	if (!GLEW_VERSION_3_2)
-		return FALSE;
+		return NULL;
 
 	glEnable(GL_DEBUG_OUTPUT);
 	glDebugMessageCallback(MessageCallback, 0);
@@ -350,7 +350,6 @@
 
 	glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, framebuffer.texture_id, 0);
 	glViewport(0, 0, framebuffer.width, framebuffer.height);
-
 
 	return &framebuffer;
 }
--