mesa: fix texture/renderbuffer mix-up in test_attachment_completeness()
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Mar 2008 19:10:16 +0000 (13:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 28 Mar 2008 19:10:16 +0000 (13:10 -0600)
src/mesa/main/fbobject.c

index 6a8cba4d8a94ad7df64599d20331d22efa8f28b4..800f6ee9a31088ff9c12b721913c85a5baf23f2c 100644 (file)
@@ -307,7 +307,7 @@ test_attachment_completeness(const GLcontext *ctx, GLenum format,
             /* OK */
          }
          else if (ctx->Extensions.EXT_packed_depth_stencil &&
-                  att->Renderbuffer->_BaseFormat == GL_DEPTH_STENCIL_EXT) {
+                  texImage->TexFormat->BaseFormat == GL_DEPTH_STENCIL_EXT) {
             /* OK */
          }
          else {