summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLBuffer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/WebGLBuffer.cpp')
-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 657ad78..63dbbc0 100644
--- a/dom/canvas/WebGLBuffer.cpp
+++ b/dom/canvas/WebGLBuffer.cpp
@@ -96,7 +96,7 @@ void WebGLBuffer::BufferData(GLenum target, size_t size, const void* data,
if (!ValidateBufferUsageEnum(mContext, funcName, usage)) return;
-#ifdef XP_MACOSX
+#if defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK)
// bug 790879
if (mContext->gl->WorkAroundDriverBugs() && size > INT32_MAX) {
mContext->ErrorOutOfMemory("%s: Allocation size too large.", funcName);