dri/nouveau: Set _BaseFormat correctly for z24s8 renderbuffers.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 21 Feb 2010 13:30:31 +0000 (14:30 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 25 Feb 2010 17:37:34 +0000 (18:37 +0100)
src/mesa/drivers/dri/nouveau/nouveau_fbo.c

index 91eade8d633db87125eb02848e892a304c39cb49..c5fb0151b35ad03768739e28736bdb2b4040ddd6 100644 (file)
@@ -70,7 +70,7 @@ set_renderbuffer_format(struct gl_renderbuffer *rb, GLenum internalFormat)
        case GL_DEPTH_COMPONENT24:
        case GL_STENCIL_INDEX8_EXT:
        case GL_DEPTH24_STENCIL8_EXT:
-               rb->_BaseFormat  = GL_DEPTH_COMPONENT;
+               rb->_BaseFormat  = GL_DEPTH_STENCIL;
                rb->Format = MESA_FORMAT_Z24_S8;
                rb->DataType = GL_UNSIGNED_INT;
                s->cpp = 4;