intel: Put CopyTexImage fallback under DEBUG_FALLBACKS not DEBUG_TEXTURE.
authorEric Anholt <eric@anholt.net>
Wed, 3 Dec 2008 23:32:51 +0000 (15:32 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 7 Dec 2008 06:41:51 +0000 (22:41 -0800)
src/mesa/drivers/dri/intel/intel_tex_copy.c

index 36446efde714b863b2fd88bc6b7b17b5e1e6a66b..dd932aebc906a95c243a7c28f2981cb972dcb8c3 100644 (file)
@@ -98,7 +98,9 @@ do_copy_texsubimage(struct intel_context *intel,
       get_teximage_source(intel, internalFormat);
 
    if (!intelImage->mt || !src) {
-      DBG("%s fail %p %p\n", __FUNCTION__, intelImage->mt, src);
+      if (INTEL_DEBUG & DEBUG_FALLBACKS)
+        fprintf(stderr, "%s fail %p %p\n",
+                __FUNCTION__, intelImage->mt, src);
       return GL_FALSE;
    }