Bug 1532525 - Enable size limit on linux. r=jgilbert, a=pascalc
authorsotaro <sotaro.ikeda.g@gmail.com>
Sun, 28 Apr 2019 21:19:18 +0900
changeset 526408 ea1286c1f2bb5bec7b922e405091ae0763bdb732
parent 526407 c139018f30d901b84e0bbe2734030866eac1d77d
child 526409 2be09493d405efb2fa4661ee50796e5312ac4c95
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, pascalc
bugs1532525
milestone67.0
Bug 1532525 - Enable size limit on linux. r=jgilbert, a=pascalc Differential Revision: https://phabricator.services.mozilla.com/D28611
dom/canvas/WebGLBuffer.cpp
--- a/dom/canvas/WebGLBuffer.cpp
+++ b/dom/canvas/WebGLBuffer.cpp
@@ -88,17 +88,17 @@ void WebGLBuffer::BufferData(GLenum targ
                              GLenum usage) {
   // Careful: data.Length() could conceivably be any uint32_t, but GLsizeiptr
   // is like intptr_t.
   if (!CheckedInt<GLsizeiptr>(size).isValid())
     return mContext->ErrorOutOfMemory("bad size");
 
   if (!ValidateBufferUsageEnum(mContext, usage)) return;
 
-#ifdef XP_MACOSX
+#if defined(XP_MACOSX) || defined(MOZ_WIDGET_GTK)
   // bug 790879
   if (mContext->gl->WorkAroundDriverBugs() && size > INT32_MAX) {
     mContext->ErrorOutOfMemory("Allocation size too large.");
     return;
   }
 #endif
 
   const void* uploadData = data;