Mesa (master): dri/nouveau: Set _BaseFormat correctly for z24s8 renderbuffers.

Francisco Jerez currojerez at kemper.freedesktop.org
Thu Feb 25 18:33:38 UTC 2010


Module: Mesa
Branch: master
Commit: 9a8e374c46079d40ef577842cbf917af1c131dc0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9a8e374c46079d40ef577842cbf917af1c131dc0

Author: Francisco Jerez <currojerez at riseup.net>
Date:   Sun Feb 21 14:30:31 2010 +0100

dri/nouveau: Set _BaseFormat correctly for z24s8 renderbuffers.

---

 src/mesa/drivers/dri/nouveau/nouveau_fbo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
index 91eade8..c5fb015 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;




More information about the mesa-commit mailing list