From 2019be737fbc79ee949768764df557b7f1dff7da Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sun, 16 May 2021 23:06:42 +0200 Subject: [PATCH] gles2: Respect shm buffer offset --- src/backend/renderer/gles2/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/renderer/gles2/mod.rs b/src/backend/renderer/gles2/mod.rs index 5e1750e..8516c95 100644 --- a/src/backend/renderer/gles2/mod.rs +++ b/src/backend/renderer/gles2/mod.rs @@ -493,7 +493,7 @@ impl Gles2Renderer { 0, gl_format, 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);