diff options
author | Brian Paul <[email protected]> | 2009-10-29 07:47:34 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-29 07:47:41 -0600 |
commit | e2131e017184a595a735e7ea1eced1552b8a7d22 (patch) | |
tree | eff37014c2d1473219374771f637d116c6b3ab57 /src/mesa/drivers/dri | |
parent | da1fb3be8293df9f89aaec726f32d73e03d57fb6 (diff) |
radeon: fix incorrect Z format in radeon_alloc_renderbuffer_storage()
And update error message.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_fbo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_fbo.c b/src/mesa/drivers/dri/radeon/radeon_fbo.c index 8dda47fcd1c..bf69cd93370 100644 --- a/src/mesa/drivers/dri/radeon/radeon_fbo.c +++ b/src/mesa/drivers/dri/radeon/radeon_fbo.c @@ -133,7 +133,7 @@ radeon_alloc_renderbuffer_storage(GLcontext * ctx, struct gl_renderbuffer *rb, case GL_DEPTH_COMPONENT: case GL_DEPTH_COMPONENT24: case GL_DEPTH_COMPONENT32: - rb->Format = MESA_FORMAT_Z32; + rb->Format = MESA_FORMAT_X8_Z24; rb->DataType = GL_UNSIGNED_INT; cpp = 4; break; @@ -145,7 +145,7 @@ radeon_alloc_renderbuffer_storage(GLcontext * ctx, struct gl_renderbuffer *rb, break; default: _mesa_problem(ctx, - "Unexpected format in intel_alloc_renderbuffer_storage"); + "Unexpected format in radeon_alloc_renderbuffer_storage"); return GL_FALSE; } |