[PATCH] wined3d: Invalidate INDEXBUFFER device state when contents of bound index buffer is changed.
Józef Kucia
jkucia at codeweavers.com
Fri Oct 28 05:20:41 CDT 2016
Fixes a regression introduced by commit
e3a8cd20ced9f33db64a35f60bc8487ae8173e47.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
dlls/wined3d/buffer.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c
index a81cd64..f111ef1 100644
--- a/dlls/wined3d/buffer.c
+++ b/dlls/wined3d/buffer.c
@@ -1022,6 +1022,12 @@ void wined3d_buffer_load(struct wined3d_buffer *buffer, struct wined3d_context *
}
}
+ if (buffer->resource.bind_count)
+ {
+ if (buffer->buffer_type_hint == GL_ELEMENT_ARRAY_BUFFER)
+ device_invalidate_state(buffer->resource.device, STATE_INDEXBUFFER);
+ }
+
if (!buffer->conversion_map)
{
/* That means that there is nothing to fixup. Just upload from
--
2.7.3
More information about the wine-patches
mailing list