Ryujinx-SDL/src/video
Sam Lantinga 48ac92af54 Fixed bug 4041 - Android, SDL_Renderer OpenGLES 1 is loading GLESv2 library
Sylvain

On Android, if you set no attribute using SDL_GL_SetAttribute(), and try to create a SDL Render OpenGLES 1:

- it loads first by default GLESv2 libraries
- creates the rendere OpenGLES 1
- recreates the Window to have a context 1.1 ( https://hg.libsdl.org/SDL/file/4db4cfd59470/src/render/opengles/SDL_render_gles.c#l298 )

But it doesn't unload libraries, then reload GLESv1 lib. So the SDL_Renderer OpenGLES 1 is working with GLES 2 libs, which seems inconsistent.


If you, at first, set
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
It will correctly load GLES v1 libraries.

Here's a small patch to reload egl libs when SDL_RecreateWindow() is called.
It fixes the issue, also the case from bug 4042

( SDL_RecreateWindow() is used by SDL_Renderer gl, gles1, gles2. )
2019-06-08 18:40:11 -07:00
..
android Fixed bug 4608 - Android: not getting SDL_WINDOWEVENT_FOCUS_GAINED on start of our app 2019-04-25 14:17:07 -07:00
cocoa Fix use-after-free when pumping the event loop after SDL_DestroyWindow() 2019-04-28 17:37:49 -07:00
directfb Updated copyright for 2019 2019-01-04 22:01:14 -08:00
dummy Updated copyright for 2019 2019-01-04 22:01:14 -08:00
emscripten Patched to compile. 2019-05-11 12:41:21 -04:00
haiku Updated copyright for 2019 2019-01-04 22:01:14 -08:00
khronos Added Vulkan headers version 1.1.91 2018-11-06 16:57:07 -08:00
kmsdrm KMSDRM: valid file descriptors could positive or 0. -1 is invalid. (Bug 4530) 2019-03-13 14:54:51 +01:00
nacl Updated copyright for 2019 2019-01-04 22:01:14 -08:00
pandora Updated copyright for 2019 2019-01-04 22:01:14 -08:00
psp Updated copyright for 2019 2019-01-04 22:01:14 -08:00
qnx Fixed mingw Windows build, since SDL_vulkan_internal.h includes windows.h 2017-08-28 00:43:14 -07:00
raspberry raspberry: expose second display. 2019-02-19 23:46:54 -05:00
uikit iOS: return SDL_GetWindowSize from SDL_GL_GetDrawableSize if there's no GLES view in the window (matches the behaviour of SDL_GL_GetDrawableSize on other platforms). Addresses bug #4629. 2019-05-26 18:53:36 -03:00
vivante video: Add Vulkan support for vivante fb 2019-05-19 10:36:44 -07:00
wayland Bug 4576: one more warning 2019-04-02 18:07:27 +02:00
windows Fixed bug 4443 - Incorrect scan code reported for numpad 5 2019-06-08 10:47:43 -07:00
winrt Bug 4576: remove touch/mouse duplication for WinRT 2019-04-02 17:13:22 +02:00
x11 Fixed bug 3911 - SYSWM generic X11 events missing event data 2019-05-19 10:44:14 -07:00
yuv2rgb yuv: Patched to make static analysis happy (warned about unused variable). 2018-06-25 13:14:52 -04:00
SDL_blit_0.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_1.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_A.c Fix blit with blending (Blit_A) to RGB332 which has no palette 2019-01-30 17:16:08 +01:00
SDL_blit_auto.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_auto.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_copy.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_copy.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_N.c Un-activate some routine on mips because they are slowers (Bug 4503) 2019-02-23 09:36:56 +01:00
SDL_blit_slow.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit_slow.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_blit.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_bmp.c Fixed Windows RT build 2019-03-19 16:52:09 -07:00
SDL_clipboard.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_egl_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_egl.c Fixed bug 4533 - Update ANGLE to load d3dcompiler_47.dll instead of d3dcompiler_46.dll 2019-06-08 15:10:20 -07:00
SDL_fillrect.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_pixels_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_pixels.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_rect_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_rect.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_RLEaccel_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_RLEaccel.c Fixed bug 4557 - SDL_SIMDAlloc and *Free should be in the public interface 2019-06-08 14:54:37 -07:00
SDL_shape_internals.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_shape.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_stretch.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_surface.c Fixed bug 4557 - SDL_SIMDAlloc and *Free should be in the public interface 2019-06-08 14:54:37 -07:00
SDL_sysvideo.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_video.c Fixed bug 4041 - Android, SDL_Renderer OpenGLES 1 is loading GLESv2 library 2019-06-08 18:40:11 -07:00
SDL_vulkan_internal.h video: Add Vulkan support for vivante fb 2019-05-19 10:36:44 -07:00
SDL_vulkan_utils.c vulkan: Swapped out a free() that should have been an SDL_free(). 2019-05-20 00:41:18 -04:00
SDL_yuv_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_yuv.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
sdlgenblit.pl Updated copyright for 2019 2019-01-04 22:01:14 -08:00