Remove old ANGLE driver bug workaround.
parent
3103cfd8b0
commit
425915a3c1
|
@ -168,16 +168,6 @@ WebGLShader::ShaderSource(const nsAString& source)
|
||||||
// 7-bit ASCII range, so we can skip the NS_IsAscii() check.
|
// 7-bit ASCII range, so we can skip the NS_IsAscii() check.
|
||||||
const NS_LossyConvertUTF16toASCII sourceCString(cleanSource);
|
const NS_LossyConvertUTF16toASCII sourceCString(cleanSource);
|
||||||
|
|
||||||
if (mContext->gl->WorkAroundDriverBugs()) {
|
|
||||||
const size_t maxSourceLength = 0x3ffff;
|
|
||||||
if (sourceCString.Length() > maxSourceLength) {
|
|
||||||
mContext->ErrorInvalidValue("shaderSource: Source has more than %d"
|
|
||||||
" characters. (Driver workaround)",
|
|
||||||
maxSourceLength);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (PR_GetEnv("MOZ_WEBGL_DUMP_SHADERS")) {
|
if (PR_GetEnv("MOZ_WEBGL_DUMP_SHADERS")) {
|
||||||
printf_stderr("////////////////////////////////////////\n");
|
printf_stderr("////////////////////////////////////////\n");
|
||||||
printf_stderr("// MOZ_WEBGL_DUMP_SHADERS:\n");
|
printf_stderr("// MOZ_WEBGL_DUMP_SHADERS:\n");
|
||||||
|
|
Loading…
Reference in New Issue