mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
SDL_UpdateNVTexture: fixed pitch/bpp for GLES2 (bug #5430)
This commit is contained in:
parent
68815b6c06
commit
958e5d5b34
@ -1787,7 +1787,7 @@ GLES2_UpdateTextureNV(SDL_Renderer * renderer, SDL_Texture * texture,
|
||||
(rect->h + 1) / 2,
|
||||
GL_LUMINANCE_ALPHA,
|
||||
GL_UNSIGNED_BYTE,
|
||||
UVplane, UVpitch / 2, 1);
|
||||
UVplane, UVpitch, 2);
|
||||
|
||||
data->glBindTexture(tdata->texture_type, tdata->texture);
|
||||
GLES2_TexSubImage2D(data, tdata->texture_type,
|
||||
|
Loading…
Reference in New Issue
Block a user