From 44c84c0d8e1701b9a0d0e3688f31b3a79163a81a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Fri, 17 Dec 2021 17:44:34 +0100 Subject: [PATCH] =?UTF-8?q?GLES2/Big-endian:=20don=C2=B4t=20swap=20datas?= =?UTF-8?q?=20for=20yuv=20textures=20(Thanks=200x1F9F1=20!)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render/opengles2/SDL_render_gles2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/opengles2/SDL_render_gles2.c b/src/render/opengles2/SDL_render_gles2.c index ddd336e3d..175ef5e26 100644 --- a/src/render/opengles2/SDL_render_gles2.c +++ b/src/render/opengles2/SDL_render_gles2.c @@ -1516,7 +1516,7 @@ GLES2_TexSubImage2D(GLES2_RenderData *data, GLenum target, GLint xoffset, GLint } #if SDL_BYTEORDER == SDL_BIG_ENDIAN - { + if (format == GL_RGBA) { int i; Uint32 *src32 = (Uint32 *)src; blob2 = (Uint32 *)SDL_malloc(src_pitch * height);