mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 790879 - work around Mac bufferData bug - r=jgilbert
This commit is contained in:
parent
d14def082f
commit
6517399659
@ -303,6 +303,15 @@ GLenum WebGLContext::CheckedBufferData(GLenum target,
|
||||
const GLvoid *data,
|
||||
GLenum usage)
|
||||
{
|
||||
#ifdef XP_MACOSX
|
||||
// bug 790879
|
||||
if (gl->WorkAroundDriverBugs() &&
|
||||
int64_t(size) > INT32_MAX) // the cast avoids a potential always-true warning on 32bit
|
||||
{
|
||||
GenerateWarning("Rejecting valid bufferData call with size %lu to avoid a Mac bug", size);
|
||||
return LOCAL_GL_INVALID_VALUE;
|
||||
}
|
||||
#endif
|
||||
WebGLBuffer *boundBuffer = NULL;
|
||||
if (target == LOCAL_GL_ARRAY_BUFFER) {
|
||||
boundBuffer = mBoundArrayBuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user