Zebediah Figura : wined3d: Allow OpenGL indirect draw buffer objects to be suballocated from a larger buffer.

Alexandre Julliard julliard at winehq.org
Mon Nov 22 16:05:17 CST 2021


Module: wine
Branch: master
Commit: 2e67ea199ccbe6049fa367344ee931b2fd8f0fb9
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=2e67ea199ccbe6049fa367344ee931b2fd8f0fb9

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Fri Nov 19 17:23:49 2021 -0600

wined3d: Allow OpenGL indirect draw buffer objects to be suballocated from a larger buffer.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/context_gl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/wined3d/context_gl.c b/dlls/wined3d/context_gl.c
index 4ba5b04cad9..b327b7bba8e 100644
--- a/dlls/wined3d/context_gl.c
+++ b/dlls/wined3d/context_gl.c
@@ -4738,7 +4738,7 @@ static void wined3d_context_gl_draw_indirect(struct wined3d_context_gl *context_
 
     GL_EXTCALL(glBindBuffer(GL_DRAW_INDIRECT_BUFFER, bo_gl->id));
 
-    offset = (void *)(GLintptr)parameters->offset;
+    offset = (const uint8_t *)bo_gl->b.buffer_offset + parameters->offset;
     if (idx_size)
     {
         GLenum idx_type = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT;




More information about the wine-cvs mailing list