summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasiliy Ulyanov <v.ulyanov@samsung.com>2016-03-16 15:34:19 +0300
committerVasiliy Ulyanov <v.ulyanov@samsung.com>2016-03-16 15:43:53 +0300
commit2a63b841b4a47c430bc6898bbc0846494efc1402 (patch)
tree7a27ab2865adce50a0b764a6ecf1283203c2b274
parentb8e8e9c98eb6e4925fb8841777f19ef60188aa20 (diff)
downloademulator-yagl-2a63b841b4a47c430bc6898bbc0846494efc1402.tar.gz
emulator-yagl-2a63b841b4a47c430bc6898bbc0846494efc1402.tar.bz2
emulator-yagl-2a63b841b4a47c430bc6898bbc0846494efc1402.zip
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>
-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);