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:
Amit Feller
2011-07-31 16:28:39 +03:00
committed by David 'Digit' Turner
parent ee2388cb94
commit e993528d8e

View File

@@ -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;