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
This commit is contained in:
committed by
David 'Digit' Turner
parent
ee2388cb94
commit
e993528d8e
@@ -27,6 +27,7 @@ size_t glSizeof(GLenum type)
|
||||
break;
|
||||
case GL_SHORT:
|
||||
case GL_UNSIGNED_SHORT:
|
||||
case GL_HALF_FLOAT_OES:
|
||||
retval = 2;
|
||||
break;
|
||||
case GL_FLOAT:
|
||||
@@ -38,6 +39,8 @@ size_t glSizeof(GLenum type)
|
||||
retval = 8;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
ERR("**** ERROR unknown type 0x%x (%s,%d)\n", type, __FUNCTION__,__LINE__);
|
||||
}
|
||||
return retval;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user