diff options
author | José Fonseca <jfonseca@vmware.com> | 2009-03-24 21:21:37 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2009-03-25 21:03:15 +0000 |
commit | ad5f9752ce7dc7b588a98e0c1ac820a3f918b4d5 (patch) | |
tree | 87236bca03191ba55edb6a493247de14b83ccf60 /src/gallium/state_trackers/python/retrace | |
parent | 5381331f97e55db12cce30859a0156c69894f1d2 (diff) |
python: s/pitch/stride/
Diffstat (limited to 'src/gallium/state_trackers/python/retrace')
-rwxr-xr-x | src/gallium/state_trackers/python/retrace/interpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/python/retrace/interpreter.py b/src/gallium/state_trackers/python/retrace/interpreter.py index 3050904ece..6b9587bf2b 100755 --- a/src/gallium/state_trackers/python/retrace/interpreter.py +++ b/src/gallium/state_trackers/python/retrace/interpreter.py @@ -424,7 +424,7 @@ class Context(Object): vbuf = vbufs[i] self.real.set_vertex_buffer( i, - pitch = vbuf.pitch, + stride = vbuf.stride, max_index = vbuf.max_index, buffer_offset = vbuf.buffer_offset, buffer = vbuf.buffer, @@ -452,7 +452,7 @@ class Context(Object): for velem in self.velems: vbuf = self.vbufs[velem.vertex_buffer_index] - offset = vbuf.buffer_offset + velem.src_offset + vbuf.pitch*index + offset = vbuf.buffer_offset + velem.src_offset + vbuf.stride*index format = { gallium.PIPE_FORMAT_R32_FLOAT: 'f', gallium.PIPE_FORMAT_R32G32_FLOAT: '2f', |