mesa: move error check code in compressedteximage()

This was mistakenly inside the #if FEATURE_ES block.
This commit is contained in:
Brian Paul 2011-04-16 08:03:47 -06:00
parent 77db34b50d
commit af0e2ef8cc

View file

@ -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: