aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-03-21 12:31:21 -0600
committerBrian <[email protected]>2008-03-21 12:33:28 -0600
commit85ea7ff25cec703a00d79246df49a4ae6192c395 (patch)
tree4e80886d8eb7f7b2afd6c1cf536100571a565aaf /src/mesa/main/teximage.c
parent7936c614abc165270852bc5e7e316747a9cacdfb (diff)
Fix some PBO breakage.
In _mesa_Bitmap, can't early return if bitmap ptr is NULL, it may be an offset into a PBO. Similarly for _mesa_GetTexImage.
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 7241cf61be3..adf3d375979 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2306,9 +2306,6 @@ _mesa_GetTexImage( GLenum target, GLint level, GLenum format,
return;
}
- if (!pixels)
- return;
-
_mesa_lock_texture(ctx, texObj);
{
texImage = _mesa_select_tex_image(ctx, texObj, target, level);