summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-05-29 12:08:40 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-05-29 12:08:40 +0200
commit23115528859e518813214b35c36232da0c1c7b5f (patch)
treedc3033d65fbb9c5964b9764dbbde33596e7cce1e
parent21495c58976e3cbbfe54d2e54d1fd67e36dff2a6 (diff)
downloadUXP-23115528859e518813214b35c36232da0c1c7b5f.tar
UXP-23115528859e518813214b35c36232da0c1c7b5f.tar.gz
UXP-23115528859e518813214b35c36232da0c1c7b5f.tar.lz
UXP-23115528859e518813214b35c36232da0c1c7b5f.tar.xz
UXP-23115528859e518813214b35c36232da0c1c7b5f.zip
[WebGL] Enable size limit on Linux.
Some drivers on Linux are not supportive of very large allocation sizes (esp. applicable to Linux x86 builds of UXP applications) and could cause issues. Treat this the same way we already do on Mac/Darwin.
-rw-r--r--dom/canvas/WebGLBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/canvas/WebGLBuffer.cpp b/dom/canvas/WebGLBuffer.cpp
index f202c9950..1eaf37ac4 100644
--- a/dom/canvas/WebGLBuffer.cpp
+++ b/dom/canvas/WebGLBuffer.cpp
@@ -115,7 +115,7 @@ WebGLBuffer::BufferData(GLenum target, size_t size, const void* data, GLenum usa
const ScopedLazyBind lazyBind(gl, target, this);
mContext->InvalidateBufferFetching();
-#ifdef XP_MACOSX
+#if defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK)
// bug 790879
if (gl->WorkAroundDriverBugs() &&
size > INT32_MAX)