mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
[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.
This commit is contained in:
parent
ac3fb82b48
commit
de22dcde32
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue