gles2: Respect shm buffer offset

This commit is contained in:
Victor Brekenfeld 2021-05-16 23:06:42 +02:00
parent 0025f13adc
commit 2019be737f
1 changed files with 1 additions and 1 deletions

View File

@ -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);