summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLShader.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-08-08 22:15:33 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-08-08 22:15:33 +0200
commitfa4d569b93885f47c4b53430fc93bf8b12e43fcb (patch)
tree3c892fe59e43f0969c3c31d12294497ebeafc427 /dom/canvas/WebGLShader.cpp
parent5a957202b70a0b11078b0cffa8967b63baff5661 (diff)
downloadUXP-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.cpp10
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");