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

index 671f80c7a48ddc3a448e0eecaa0c9adc5595d213..9b60c73294014a14efb74efe1487f87fc80e7c8c 100644 (file)
@@ -303,7 +303,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 {