Sam Lantinga 3f1b1629c4 Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures
Simon Hug

The GL_CreateTexture function doesn't have any checks for the case where the driver doesn't support the framebuffer object extension. It will call into GL_GetFBO which will call the non-existent glGenFramebuffersEXT.

Also, for some reason GL_CreateContext always sets the SDL_RENDERER_TARGETTEXTURE info flag, even if it is not supported. Changeset cc226dce7536 [1] makes this change, but doesn't explain why. It seems to me like the code would already have taken care of this [2].

The attached patch adds some checks and stops SDL from reporting render target support if there is none. The application can then properly inform the user instead of just crashing.
2016-10-01 10:52:24 -07:00
..
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-09-13 22:18:06 -03:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-01-02 10:10:34 -08:00
2016-09-13 22:18:06 -03:00