summaryrefslogtreecommitdiff
path: root/src/mesa/main/depthstencil.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-10-24 11:34:27 -0600
committerBrian Paul <brianp@vmware.com>2009-10-24 11:34:27 -0600
commit2c3787f5130f79c3adbb9e8e1ace8935c919876f (patch)
tree03d07164e89c3ddb866e8dfca5b0e98d0c6803b9 /src/mesa/main/depthstencil.c
parentd255aaf54f9a4398247698408bd45698b1cefe58 (diff)
mesa: move assertion after declaration
Diffstat (limited to 'src/mesa/main/depthstencil.c')
-rw-r--r--src/mesa/main/depthstencil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/depthstencil.c b/src/mesa/main/depthstencil.c
index 6fefdac1e3..193c7f8255 100644
--- a/src/mesa/main/depthstencil.c
+++ b/src/mesa/main/depthstencil.c
@@ -329,8 +329,8 @@ put_mono_values_z24(GLcontext *ctx, struct gl_renderbuffer *z24rb,
}
}
else {
- assert(dsrb->Format == MESA_FORMAT_S8_Z24);
const GLuint shiftedVal = *((GLuint *) value);
+ assert(dsrb->Format == MESA_FORMAT_S8_Z24);
for (i = 0; i < count; i++) {
if (!mask || mask[i]) {
temp[i] = shiftedVal | (temp[i] & 0xff000000);