OES_compressed_ETC1_RGB8_texture spec says:
INVALID_OPERATION is generated by CompressedTexSubImage2D,
TexSubImage2D, or CopyTexSubImage2D if the texture image <level>
bound to <target> has internal format ETC1_RGB8_OES.
Currently this error check causes problems with some apps so
temporarly disable it as a workaround.
Change-Id: I8bdc6f2b7a7b65730d4dee9a8a91b9f6ce465485
Signed-off-by: Vasiliy Ulyanov <v.ulyanov@samsung.com>
YAGL_LOG_FUNC_SET(glCompressedTexSubImage2D);
+#if 0
+ /*
+ * FIXME: this is a workaround. GL_ETC1_RGB8_OES check is absolutely
+ * correct according to the spec. Unfortunately at the moment it causes
+ * issues which need to be fixed urgently :(
+ */
if (format == GL_ETC1_RGB8_OES) {
/*
* "INVALID_OPERATION is generated by CompressedTexSubImage2D,
YAGL_SET_ERR(GL_INVALID_OPERATION);
return;
}
+#endif /* 0 */
tc_format = yagl_texcompress_get_format(format);