mesa: move assertion after declaration

This commit is contained in:
Brian Paul 2009-10-24 11:34:27 -06:00
parent d255aaf54f
commit 2c3787f513

View file

@ -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);