mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Properly use GL_UNPACK_ROW_WIDTH for FF GL.
This commit is contained in:
parent
afb4474a64
commit
2bf3514316
1
gfx/gl.c
1
gfx/gl.c
@ -814,6 +814,7 @@ static void gl_update_input_size(gl_t *gl, unsigned width, unsigned height, unsi
|
||||
gl->texture_fmt, NULL);
|
||||
#else
|
||||
glPixelStorei(GL_UNPACK_ALIGNMENT, get_alignment(pitch));
|
||||
glPixelStorei(GL_UNPACK_ROW_LENGTH, gl->tex_w);
|
||||
glTexSubImage2D(GL_TEXTURE_2D,
|
||||
0, 0, 0, gl->tex_w, gl->tex_h, gl->texture_type,
|
||||
gl->texture_fmt, gl->empty_buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user