dri/nouveau: Fix rb->DataType for z24s8 renderbuffers.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 4 Mar 2010 20:40:47 +0000 (21:40 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 4 Mar 2010 22:07:11 +0000 (23:07 +0100)
src/mesa/drivers/dri/nouveau/nouveau_fbo.c

index 846478650e2f350ba64829d71c01eebdcf721490..2ec3dc92420c0e6480296e2157ba9a77e022a74e 100644 (file)
@@ -72,7 +72,7 @@ set_renderbuffer_format(struct gl_renderbuffer *rb, GLenum internalFormat)
        case GL_DEPTH24_STENCIL8_EXT:
                rb->_BaseFormat  = GL_DEPTH_STENCIL;
                rb->Format = MESA_FORMAT_Z24_S8;
-               rb->DataType = GL_UNSIGNED_INT;
+               rb->DataType = GL_UNSIGNED_INT_24_8_EXT;
                s->cpp = 4;
                break;
        default: