From: Brian Paul Date: Sat, 16 Apr 2011 14:03:47 +0000 (-0600) Subject: mesa: move error check code in compressedteximage() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af0e2ef8cc5c823e3c950233a09b8de87933a363;p=mesa.git mesa: move error check code in compressedteximage() This was mistakenly inside the #if FEATURE_ES block. --- diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index c5c454336fa..af0b9c75187 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -3281,13 +3281,13 @@ compressedteximage(struct gl_context *ctx, GLuint dims, internalFormat, width, height, depth, border, imageSize); -#if FEATURE_ES - /* XXX this is kind of a hack */ if (error) { _mesa_error(ctx, error, "glTexImage2D"); return; } +#if FEATURE_ES + /* XXX this is kind of a hack */ if (dims == 2) { switch (internalFormat) { case GL_PALETTE4_RGB8_OES: