d3d1x/context: fix IASetVertexBuffers stride comparison
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 5 Oct 2011 14:56:24 +0000 (16:56 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 21 Oct 2011 21:00:38 +0000 (23:00 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h

index f3db384..d6b6400 100644 (file)
@@ -599,7 +599,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
                        ID3D11Buffer* buffer = new_vertex_buffers[i];
                        if(buffer != input_buffers[start + i].p
                                || vertex_buffers[start + i].buffer_offset != new_offsets[i]
-                               || vertex_buffers[start + i].stride != new_offsets[i]
+                               || vertex_buffers[start + i].stride != new_strides[i]
                        )
                        {
                                input_buffers[start + i] = buffer;