opengles emulator: fixing GL_HALF_FLOAT_OES bug
when calculating the data size to pack, the type GL_HALF_FLOAT_OES,
wasn't recognized at all and therefore was by default 0, while it
should be 2 bytes.
Change-Id: Ib1f0dcdb837dd1b9cfebd1090cabfb59de472c53
diff --git a/tools/emulator/opengl/shared/OpenglCodecCommon/glUtils.cpp b/tools/emulator/opengl/shared/OpenglCodecCommon/glUtils.cpp
index 6bd3c9f..4376b6a 100644
--- a/tools/emulator/opengl/shared/OpenglCodecCommon/glUtils.cpp
+++ b/tools/emulator/opengl/shared/OpenglCodecCommon/glUtils.cpp
@@ -27,6 +27,7 @@
break;
case GL_SHORT:
case GL_UNSIGNED_SHORT:
+ case GL_HALF_FLOAT_OES:
retval = 2;
break;
case GL_FLOAT:
@@ -38,6 +39,8 @@
retval = 8;
break;
#endif
+ default:
+ ERR("**** ERROR unknown type 0x%x (%s,%d)\n", type, __FUNCTION__,__LINE__);
}
return retval;