Bug 1024066 - Fix webgl-1.0.3 conformance failure OES texture half float. r=jgilbert

This commit is contained in:
Walter Litwinczyk 2014-06-11 14:31:29 -07:00
parent 0e57af1dbb
commit a3c268a4d5

View File

@ -1206,12 +1206,8 @@ WebGLContext::ValidateTexInputData(GLenum type, int jsArrayType, WebGLTexImageFu
validInput = (jsArrayType == -1 || jsArrayType == js::ArrayBufferView::TYPE_UINT8);
break;
// TODO: WebGL spec doesn't allow half floats to specified as UInt16.
case LOCAL_GL_HALF_FLOAT:
case LOCAL_GL_HALF_FLOAT_OES:
validInput = (jsArrayType == -1);
break;
case LOCAL_GL_UNSIGNED_SHORT:
case LOCAL_GL_UNSIGNED_SHORT_4_4_4_4:
case LOCAL_GL_UNSIGNED_SHORT_5_5_5_1: