texobj: Check completeness with InternalFormat rather than Mesa format
[mesa.git] / src / mesa / main / texobj.c
index 547055ecf39f9d2647059c5b429c00fb888a5d2f..b107a8f8678c061dfe67084d2e281e542aa51021 100644 (file)
@@ -835,7 +835,7 @@ _mesa_test_texobj_completeness( const struct gl_context *ctx,
                   incomplete(t, MIPMAP, "TexImage[%d] is missing", i);
                   return;
                }
-               if (img->TexFormat != baseImage->TexFormat) {
+               if (img->InternalFormat != baseImage->InternalFormat) {
                   incomplete(t, MIPMAP, "Format[i] != Format[baseLevel]");
                   return;
                }