shithub: cstory

Download patch

ref: 2d73fd8bb913500551dad70de8ad9d2cd45aaf63
parent: 0abac07aab4be5c0c702604c8ff2b5ca10893d70
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Jul 26 23:42:51 EDT 2019

Use GLEW to check if OpenGL 2.1 is supported

--- a/src/Backends/Rendering/OpenGL2.cpp
+++ b/src/Backends/Rendering/OpenGL2.cpp
@@ -102,6 +102,10 @@
 	if (glewInit() != GLEW_OK)
 		return FALSE;
 
+	// Check if the platform supports OpenGL 2.1
+	if (!GLEW_VERSION_2_1)
+		return FALSE;
+
 	// Check for framebuffer object extension (is part of the core spec in OpenGL 3.0, but not 2.1)
 	if (!GLEW_EXT_framebuffer_object)
 		return FALSE;