projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d255aaf
)
mesa: move assertion after declaration
author
Brian Paul
<brianp@vmware.com>
Sat, 24 Oct 2009 17:34:27 +0000
(11:34 -0600)
committer
Brian Paul
<brianp@vmware.com>
Sat, 24 Oct 2009 17:34:27 +0000
(11:34 -0600)
src/mesa/main/depthstencil.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/depthstencil.c
b/src/mesa/main/depthstencil.c
index 6fefdac1e316866d4c5063e9784b25dacd51bf41..193c7f8255fe9e4d246a7105b98b12ec8d8f26f4 100644
(file)
--- 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);