SDL/src
Sam Lantinga 9d9e92cf46 Fixed bug 3304 - Android black screen on resume
Richard Russell

Resuming from a suspended state results in a black screen.  This only happens when using GLES 1.1 (GLES 2 resumes correctly) and when the render target has been changed using SDL_SetRenderTarget.  This problem is new in 2.0.4.

The attached test case demonstrates the issue.

Sylvain Becker has apparently found a fix as follows:

"In the opengles leaf function (in 'src/render/opengles/SDL_render_gles.c'), it appears there is a call to 'GLES_ActivateRenderer' in 'GLES_SetRenderTarget', which is not present in opengles2. When commenting out this 'GLES_ActivateRenderer', it seems to resume fine".

This appears to fix the testcase perfectly, but I don't know whether it could have any undesirable side-effects.
2017-01-08 10:41:22 -08:00
..
atomic Updated copyright for 2017 2017-01-01 18:33:28 -08:00
audio Replaced a few single-line "//" comments. 2017-01-07 17:09:14 -05:00
core SDL_evdev.c: fix building against old kernel headers (K_OFF may not be defined.) 2017-01-08 10:15:22 -08:00
cpuinfo Updated copyright for 2017 2017-01-01 18:33:28 -08:00
dynapi Added SDL_JoystickGetAxisInitialState() to get a joystick axis' initial value. 2017-01-04 10:28:07 -08:00
events Replaced a few single-line "//" comments. 2017-01-07 17:09:14 -05:00
file Updated copyright for 2017 2017-01-01 18:33:28 -08:00
filesystem Updated copyright for 2017 2017-01-01 18:33:28 -08:00
haptic Updated copyright for 2017 2017-01-01 18:33:28 -08:00
joystick Replaced a few single-line "//" comments. 2017-01-07 17:09:14 -05:00
libm Updated copyright for 2017 2017-01-01 18:33:28 -08:00
loadso Updated copyright for 2017 2017-01-01 18:33:28 -08:00
main Updated copyright for 2017 2017-01-01 18:33:28 -08:00
power Updated copyright for 2017 2017-01-01 18:33:28 -08:00
render Fixed bug 3304 - Android black screen on resume 2017-01-08 10:41:22 -08:00
stdlib Updated copyright for 2017 2017-01-01 18:33:28 -08:00
test Updated copyright for 2017 2017-01-01 18:33:28 -08:00
thread Updated copyright for 2017 2017-01-01 18:33:28 -08:00
timer Updated copyright for 2017 2017-01-01 18:33:28 -08:00
video x11: make the X11 target work on macOS with Xquartz. 2017-01-07 19:55:29 -05:00
SDL.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_assert.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_assert_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dataqueue.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_dataqueue.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_error.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_error_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_hints.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_internal.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_log.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00