SDL/src
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
..
atomic Updated copyright to 2016 2016-01-02 10:10:34 -08:00
audio Mac: Fixed whitespace around function return type. 2016-09-21 23:06:49 +02:00
core Android: Fixed two warnings about unused variables. 2016-09-21 23:06:26 +02:00
cpuinfo Updated copyright to 2016 2016-01-02 10:10:34 -08:00
dynapi Added SDL_SetWindowResizable(). (thanks, Ethan!) 2016-09-29 22:52:41 -04:00
events Fixed crash if allocating memory for mouse clicks failed. 2016-09-30 23:30:54 +02:00
file Updated copyright to 2016 2016-01-02 10:10:34 -08:00
filesystem Fixed compiling if filesystem is disabled (thanks, Elias!). 2016-08-30 21:14:13 +02:00
haptic Linux: Fixed memory leak in haptic implementation (thanks, Martin!). 2016-07-20 21:01:14 +02:00
joystick Added a new hint SDL_HINT_APPLE_TV_REMOTE_ALLOW_ROTATION. 2016-09-17 01:31:07 -03:00
libm Updated copyright to 2016 2016-01-02 10:10:34 -08:00
loadso Enable SDL_LoadObject on iOS 8+ and tvOS. 2016-09-25 15:02:06 -03:00
main Updated version to 2.0.5 in preparation for release 2016-09-28 22:24:01 -07:00
power Initial Apple TV / tvOS support. 2016-09-13 22:18:06 -03:00
render Fixed bug 3362 - OpenGL renderer doesn't check if framebuffers are supported when creating target textures 2016-10-01 10:52:24 -07:00
stdlib Quick fix for qsort off-by-one error. 2016-03-11 08:30:18 -08:00
test We should be using a string constant for the strftime format string 2016-10-01 10:38:15 -07:00
thread Fixed bug 3388 - Fail to build src/thread/windows/SDL_systhread.c on MinGW 4.9.3 2016-10-01 10:08:34 -07:00
timer threads: Move SDL's own thread creation to a new internal API. 2016-04-12 16:45:10 -04:00
video Fixed bug 3368 - SDL_Blit_Slow doesn't ignore alpha values in colorkey comparison 2016-10-01 10:46:10 -07:00
SDL.c Initial Apple TV / tvOS support. 2016-09-13 22:18:06 -03:00
SDL_assert.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_assert_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_error.c Fix "format not a string literal" errors 2016-10-01 10:36:24 -07:00
SDL_error_c.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_hints.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_internal.h Updated copyright to 2016 2016-01-02 10:10:34 -08:00
SDL_log.c Updated copyright to 2016 2016-01-02 10:10:34 -08:00