summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-25 02:26:18 -0800
committerVinson Lee <[email protected]>2010-02-25 02:26:18 -0800
commitd553479cc48d512fc5055c166a699bcfff494a24 (patch)
treebf01bdad03f66522f150e5f19e36bc5eb03fd04c /src
parent9be414f4b93c763e1aee8f634a13721ae5d95fcd (diff)
mesa: Remove dead error condition.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/pixel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index f6c316a5803..e2e3854fc80 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -427,7 +427,7 @@ _mesa_GetPixelMapusv( GLenum map, GLushort *values )
_mesa_error(ctx, GL_INVALID_ENUM, "glGetPixelMapusv(map)");
return;
}
- mapsize = pm ? pm->Size : 0;
+ mapsize = pm->Size;
if (!validate_pbo_access(ctx, &ctx->Pack, mapsize,
GL_INTENSITY, GL_UNSIGNED_SHORT, values)) {