diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-08 22:15:33 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-08-08 22:15:33 +0200 |
commit | fa4d569b93885f47c4b53430fc93bf8b12e43fcb (patch) | |
tree | 3c892fe59e43f0969c3c31d12294497ebeafc427 /dom/canvas/WebGLShader.cpp | |
parent | 5a957202b70a0b11078b0cffa8967b63baff5661 (diff) | |
download | UXP-fa4d569b93885f47c4b53430fc93bf8b12e43fcb.tar UXP-fa4d569b93885f47c4b53430fc93bf8b12e43fcb.tar.gz UXP-fa4d569b93885f47c4b53430fc93bf8b12e43fcb.tar.lz UXP-fa4d569b93885f47c4b53430fc93bf8b12e43fcb.tar.xz UXP-fa4d569b93885f47c4b53430fc93bf8b12e43fcb.zip |
Remove old ANGLE driver bug workaround.
Diffstat (limited to 'dom/canvas/WebGLShader.cpp')
-rw-r--r-- | dom/canvas/WebGLShader.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/dom/canvas/WebGLShader.cpp b/dom/canvas/WebGLShader.cpp index 37380f1e0..69ca03fc4 100644 --- a/dom/canvas/WebGLShader.cpp +++ b/dom/canvas/WebGLShader.cpp @@ -168,16 +168,6 @@ WebGLShader::ShaderSource(const nsAString& source) // 7-bit ASCII range, so we can skip the NS_IsAscii() check. 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")) { printf_stderr("////////////////////////////////////////\n"); printf_stderr("// MOZ_WEBGL_DUMP_SHADERS:\n"); |