mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
swrast: make rowStride variable signed in put_z32_values()
As with commit aed5c8299f
This commit is contained in:
parent
89bb19adb0
commit
cf386f0a2b
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ put_z32_values(struct gl_context *ctx, struct gl_renderbuffer *rb,
|
||||||
GLuint i;
|
GLuint i;
|
||||||
|
|
||||||
if (rb->Format == MESA_FORMAT_Z32) {
|
if (rb->Format == MESA_FORMAT_Z32) {
|
||||||
const GLuint rowStride = srb->RowStride;
|
const GLint rowStride = srb->RowStride;
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
if (mask[i] && x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
|
if (mask[i] && x[i] >= 0 && y[i] >= 0 && x[i] < w && y[i] < h) {
|
||||||
GLuint *dst = (GLuint *) (map + y[i] * rowStride + x[i] * 4);
|
GLuint *dst = (GLuint *) (map + y[i] * rowStride + x[i] * 4);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue