From dfbe81c89f0ef95ac7579b0ecbb04d2d6d08bd33 Mon Sep 17 00:00:00 2001 From: Roland Baer Date: Thu, 2 Aug 2007 17:22:23 +0300 Subject: [PATCH] Removed too late NULL check --- src/mesa/drivers/dri/r300/r300_texmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/r300/r300_texmem.c b/src/mesa/drivers/dri/r300/r300_texmem.c index 38f0da8..723601a 100644 --- a/src/mesa/drivers/dri/r300/r300_texmem.c +++ b/src/mesa/drivers/dri/r300/r300_texmem.c @@ -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) { -- 1.5.2.3