mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 04:20:28 +00:00
Fix unpack row len with 16-bit cores on desktop.
Missed call to UNPACK_ROW_LENGTH :(
This commit is contained in:
parent
81fc0f621a
commit
9c218bcf07
6
gfx/gl.c
6
gfx/gl.c
@ -1275,6 +1275,8 @@ static inline void gl_copy_frame(void *data, const void *frame, unsigned width,
|
||||
gl_convert_frame_rgb16_32(gl, gl->conv_buffer, frame, width, height, pitch);
|
||||
buf = gl->conv_buffer;
|
||||
}
|
||||
else
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, pitch / gl->base_size);
|
||||
|
||||
glTexSubImage2D(GL_TEXTURE_2D,
|
||||
0, 0, 0, width, height, gl->texture_type,
|
||||
@ -1286,9 +1288,9 @@ static inline void gl_copy_frame(void *data, const void *frame, unsigned width,
|
||||
glTexSubImage2D(GL_TEXTURE_2D,
|
||||
0, 0, 0, width, height, gl->texture_type,
|
||||
gl->texture_fmt, frame);
|
||||
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
|
||||
}
|
||||
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user