From: Vinson Lee Date: Thu, 25 Feb 2010 10:26:18 +0000 (-0800) Subject: mesa: Remove dead error condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d553479cc48d512fc5055c166a699bcfff494a24;p=mesa.git mesa: Remove dead error condition. --- 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)) {