remove unnecessary null check (bug 11814)
authorBrian <brian.paul@tungstengraphics.com>
Thu, 2 Aug 2007 14:44:34 +0000 (08:44 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 2 Aug 2007 14:44:34 +0000 (08:44 -0600)
src/mesa/drivers/dri/r300/r300_texmem.c

index 38f0da8b7c07d3ea56fedafeec117fc9fb3fc53c..723601ac4a6bc1f1d7d3214f774b499c6fc0e88f 100644 (file)
@@ -505,7 +505,7 @@ int r300UploadTexImages(r300ContextPtr rmesa, r300TexObjPtr t, GLuint face)
                        t->base.lastLevel);
        }
 
-       if (!t || t->base.totalSize == 0)
+       if (t->base.totalSize == 0)
                return 0;
 
        if (RADEON_DEBUG & DEBUG_SYNC) {