Use GLEW to check if OpenGL 2.1 is supported

This commit is contained in:
Clownacy 2019-07-27 03:42:51 +00:00
parent 0abac07aab
commit 2d73fd8bb9

View file

@ -102,6 +102,10 @@ BOOL Backend_Init(SDL_Window *p_window)
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;