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

Author: Michel Dänzer <daen...@vmware.com>
Date:   Sun Aug 30 12:37:11 2009 +0200

radeon: Fix datatype for GL_DEPTH_COMPONENT renderbuffers.

---

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

diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c 
b/src/mesa/drivers/dri/radeon/radeon_fbo.c
index be4bc54..361774b 100644
--- a/src/mesa/drivers/dri/radeon/radeon_fbo.c
+++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c
@@ -316,7 +316,7 @@ radeon_create_renderbuffer(GLenum format, 
__DRIdrawablePrivate *driDrawPriv)
            rrb->base._ActualFormat = GL_DEPTH_COMPONENT24;
            rrb->base._BaseFormat = GL_DEPTH_COMPONENT;
            rrb->base.DepthBits = 24;
-           rrb->base.DataType = GL_UNSIGNED_INT;
+           rrb->base.DataType = GL_UNSIGNED_INT_24_8_EXT;
            break;
        case GL_DEPTH24_STENCIL8_EXT:
            rrb->base._ActualFormat = GL_DEPTH24_STENCIL8_EXT;

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to