summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GLESv2/yagl_gles2_context.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/GLESv2/yagl_gles2_context.c b/GLESv2/yagl_gles2_context.c
index 515d5f2..f9591e2 100644
--- a/GLESv2/yagl_gles2_context.c
+++ b/GLESv2/yagl_gles2_context.c
@@ -721,6 +721,12 @@ void yagl_gles2_context_compressed_tex_sub_image_2d(struct yagl_gles_context *gl
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,
@@ -730,6 +736,7 @@ void yagl_gles2_context_compressed_tex_sub_image_2d(struct yagl_gles_context *gl
YAGL_SET_ERR(GL_INVALID_OPERATION);
return;
}
+#endif /* 0 */
tc_format = yagl_texcompress_get_format(format);