radeon: fix incorrect Z format in radeon_alloc_renderbuffer_storage()
authorBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 13:47:34 +0000 (07:47 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 29 Oct 2009 13:47:41 +0000 (07:47 -0600)
And update error message.

src/mesa/drivers/dri/radeon/radeon_fbo.c

index 8dda47fcd1c818b83db5c93c2539c5694aa46d88..bf69cd933709a162a6509f1a4da922d47d7161df 100644 (file)
@@ -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;
    }