SDL/src/render
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
..
direct3d Updated copyright for 2017 2017-01-01 18:33:28 -08:00
direct3d11 Updated copyright for 2017 2017-01-01 18:33:28 -08:00
opengl Updated copyright for 2017 2017-01-01 18:33:28 -08:00
opengles Fixed bug 3304 - Android black screen on resume 2017-01-08 10:41:22 -08:00
opengles2 Updated copyright for 2017 2017-01-01 18:33:28 -08:00
psp Updated copyright for 2017 2017-01-01 18:33:28 -08:00
software Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_d3dmath.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_d3dmath.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_render.c Better fix for static analysis issue in SDL_DestroyRenderer(). 2017-01-06 21:17:33 -05:00
SDL_sysrender.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_yuv_mmx.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_yuv_sw.c Updated copyright for 2017 2017-01-01 18:33:28 -08:00
SDL_yuv_sw_c.h Updated copyright for 2017 2017-01-01 18:33:28 -08:00
mmx.h Fixed crash if initialization of EGL failed but was tried again later. 2015-06-21 17:33:46 +02:00