mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 09:15:28 +00:00
Fixes OpenGL ES 2 renderer (Thanks Sylvain Becker)
This commit is contained in:
parent
620510b337
commit
e63e1a5e64
|
@ -592,7 +592,7 @@ GLES2_TexSubImage2D(GLES2_DriverContext *data, GLenum target, GLint xoffset, GLi
|
||||||
|
|
||||||
/* Reformat the texture data into a tightly packed array */
|
/* Reformat the texture data into a tightly packed array */
|
||||||
src_pitch = width * bpp;
|
src_pitch = width * bpp;
|
||||||
src = (Uint8 *)data;
|
src = (Uint8 *) pixels;
|
||||||
if (pitch != src_pitch) {
|
if (pitch != src_pitch) {
|
||||||
blob = (Uint8 *)SDL_malloc(src_pitch * height);
|
blob = (Uint8 *)SDL_malloc(src_pitch * height);
|
||||||
if (!blob) {
|
if (!blob) {
|
||||||
|
|
Loading…
Reference in a new issue