From: Francisco Jerez Date: Sun, 21 Feb 2010 13:30:31 +0000 (+0100) Subject: dri/nouveau: Set _BaseFormat correctly for z24s8 renderbuffers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a8e374c46079d40ef577842cbf917af1c131dc0;p=mesa.git dri/nouveau: Set _BaseFormat correctly for z24s8 renderbuffers. --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c index 91eade8d633..c5fb0151b35 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c @@ -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;