aboutsummaryrefslogtreecommitdiff
path: root/shared/OpenglCodecCommon
diff options
context:
space:
mode:
authorYahan Zhou <yahan@google.com>2016-02-09 17:42:33 -0800
committerYahan Zhou <yahan@google.com>2016-02-10 02:08:58 +0000
commit5950852258d5d98d7861890ecdcf6b0d4bc234ab (patch)
tree7030ca43d58654cb7ad9ff27558f623396f3597e /shared/OpenglCodecCommon
parent13881dabafc88728741df6b5e9437c16efbc2ba0 (diff)
downloadgoldfish-opengl-5950852258d5d98d7861890ecdcf6b0d4bc234ab.tar.gz
Support glDrawElements with GL_UNSIGNED_INT in the encoder
Currently glDrawElements with type GL_UNSIGNED_INT is not supported by our encoder and decoder. The emulator will crash if someone uses it. This patch add the support in the encoder side. The related issue is here: b.android.com/200338 The patch on the decoder: https://android-review.googlesource.com/#/c/202101 Change-Id: I9a6cde9983d34f39cfcc8c66a7ccf021dd5963eb
Diffstat (limited to 'shared/OpenglCodecCommon')
-rw-r--r--shared/OpenglCodecCommon/glUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared/OpenglCodecCommon/glUtils.cpp b/shared/OpenglCodecCommon/glUtils.cpp
index eb4ba944..a61f76fb 100644
--- a/shared/OpenglCodecCommon/glUtils.cpp
+++ b/shared/OpenglCodecCommon/glUtils.cpp
@@ -31,6 +31,7 @@ size_t glSizeof(GLenum type)
case GL_HALF_FLOAT_OES:
retval = 2;
break;
+ case GL_UNSIGNED_INT:
case GL_INT:
case GL_FLOAT:
case GL_FIXED: