hostsupport/hostopengles11/src/glesapi.cpp
branchbug235_bringup_0
changeset 68 8d4efe9fa1cf
parent 53 c2ef9095503a
--- a/hostsupport/hostopengles11/src/glesapi.cpp	Mon Oct 18 18:24:13 2010 +0100
+++ b/hostsupport/hostopengles11/src/glesapi.cpp	Tue Oct 26 14:14:43 2010 +0100
@@ -2105,7 +2105,7 @@
 	GLES_ERROR_IF(!isValidPixelFormatEnum(internalformat), GL_INVALID_ENUM);
 	GLES_ERROR_IF(!isValidPixelFormatEnum(format), GL_INVALID_ENUM);
 	GLES_ERROR_IF(!isValidPixelTypeEnum(type), GL_INVALID_ENUM);
-	GLES_ERROR_IF(internalformat != format, GL_INVALID_ENUM);
+	GLES_ERROR_IF(internalformat != (GLint)format, GL_INVALID_ENUM);
 	GLES_ERROR_IF(isPalettedFormat(internalformat), GL_INVALID_OPERATION);
 	
 	ctx->DGL().glTexImage2D (target, level, internalformat, width, height, border, format, type, pixels);
@@ -2224,4 +2224,4 @@
 
 #ifdef __cplusplus
 }
-#endif
\ No newline at end of file
+#endif