check for OpenGL version 2.0+

This commit is contained in:
Matthias Mailänder
2014-05-04 12:21:38 +02:00
parent ce78683782
commit f8bb956496
2 changed files with 24 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ namespace OpenRA.Renderer.Sdl2
context = SDL.SDL_GL_CreateContext(window);
SDL.SDL_GL_MakeCurrent(window, context);
GL.LoadAll();
ErrorHandler.CheckGlVersion();
ErrorHandler.CheckGlError();
if (SDL.SDL_GL_ExtensionSupported("GL_EXT_framebuffer_object") == SDL.SDL_bool.SDL_FALSE)