dri/nouveau: Fix glRenderbufferStorage with DEPTH_COMPONENT as internal format.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 15 Sep 2010 04:05:53 +0000 (06:05 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 17:44:22 +0000 (19:44 +0200)
src/mesa/drivers/dri/nouveau/nouveau_fbo.c

index 32d8f2d0f9bbcca1ad0c8e6e981c343b47c0c244..a02a052c6d4f8d485799a28ca49226ef34500e4a 100644 (file)
@@ -67,6 +67,7 @@ set_renderbuffer_format(struct gl_renderbuffer *rb, GLenum internalFormat)
                rb->DataType = GL_UNSIGNED_SHORT;
                s->cpp = 2;
                break;
+       case GL_DEPTH_COMPONENT:
        case GL_DEPTH_COMPONENT24:
        case GL_STENCIL_INDEX8_EXT:
        case GL_DEPTH24_STENCIL8_EXT: