GLES2/Big-endian: don´t swap datas for yuv textures (Thanks 0x1F9F1 !)

This commit is contained in:
Sylvain 2021-12-17 17:44:34 +01:00
parent 3a69828e87
commit 44c84c0d8e
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ GLES2_TexSubImage2D(GLES2_RenderData *data, GLenum target, GLint xoffset, GLint
} }
#if SDL_BYTEORDER == SDL_BIG_ENDIAN #if SDL_BYTEORDER == SDL_BIG_ENDIAN
{ if (format == GL_RGBA) {
int i; int i;
Uint32 *src32 = (Uint32 *)src; Uint32 *src32 = (Uint32 *)src;
blob2 = (Uint32 *)SDL_malloc(src_pitch * height); blob2 = (Uint32 *)SDL_malloc(src_pitch * height);