b=612334; fix webgl tex-image-invalid-data test; r=bjacob

This commit is contained in:
Vladimir Vukicevic 2010-11-16 20:33:04 -08:00
parent 6187f48cf2
commit da08b74ae8

View File

@ -3822,7 +3822,7 @@ WebGLContext::TexSubImage2D_base(WebGLenum target, WebGLint level,
PRUint32 bytesNeeded = checked_neededByteLength.value();
if (byteLength < bytesNeeded)
return ErrorInvalidValue("texSubImage2D: not enough data for operation (need %d, have %d)", bytesNeeded, byteLength);
return ErrorInvalidOperation("texSubImage2D: not enough data for operation (need %d, have %d)", bytesNeeded, byteLength);
WebGLTexture *tex = activeBoundTextureForTarget(target);