[PATCH 2/6] wined3d: Add FIXME() for unimplemented index buffer offsets.

Józef Kucia <[email protected]> Fri, 3 Nov 2017 14:35:16 +0100
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
From: Józef Kucia <[email protected]>

We do not support index buffer offsets for indirect draws.

Signed-off-by: Józef Kucia <[email protected]>
---
 dlls/wined3d/drawprim.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c
index a7ca74897c7f..f1d57dc77376 100644
--- a/dlls/wined3d/drawprim.c
+++ b/dlls/wined3d/drawprim.c
@@ -654,6 +654,8 @@ void draw_primitive(struct wined3d_device *device, const struct wined3d_state *s
             if (idx_size)
             {
                 GLenum idx_type = idx_size == 2 ? GL_UNSIGNED_SHORT : GL_UNSIGNED_INT;
+                if (state->index_offset)
+                    FIXME("Ignoring index offset %u.\n", state->index_offset);
                 GL_EXTCALL(glDrawElementsIndirect(state->gl_primitive_type, idx_type,
                         (void *)(GLintptr)parameters->u.indirect.offset));
             }
-- 
2.13.6