gles2: Respect shm buffer offset
This commit is contained in:
parent
0025f13adc
commit
2019be737f
|
@ -493,7 +493,7 @@ impl Gles2Renderer {
|
||||||
0,
|
0,
|
||||||
gl_format,
|
gl_format,
|
||||||
ffi::UNSIGNED_BYTE as u32,
|
ffi::UNSIGNED_BYTE as u32,
|
||||||
slice.as_ptr() as *const _,
|
slice.as_ptr().offset(offset as isize) as *const _,
|
||||||
);
|
);
|
||||||
|
|
||||||
self.gl.PixelStorei(ffi::UNPACK_ROW_LENGTH, 0);
|
self.gl.PixelStorei(ffi::UNPACK_ROW_LENGTH, 0);
|
||||||
|
|
Loading…
Reference in New Issue