зеркало из https://github.com/mozilla/gecko-dev.git
Bug 744888 - Work around a NVIDIA driver bug - r=jgilbert
This commit is contained in:
Родитель
b3b05df356
Коммит
a75320f68f
|
@ -72,6 +72,8 @@ typedef char realGLboolean;
|
|||
|
||||
#include "GLContextSymbols.h"
|
||||
|
||||
#include "mozilla/mozalloc.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace layers {
|
||||
class LayerManagerOGL;
|
||||
|
@ -2028,6 +2030,16 @@ public:
|
|||
void fBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) {
|
||||
BEFORE_GL_CALL;
|
||||
mSymbols.fBufferData(target, size, data, usage);
|
||||
|
||||
// bug 744888
|
||||
if (WorkAroundDriverBugs() &&
|
||||
!data &&
|
||||
Vendor() == VendorNVIDIA)
|
||||
{
|
||||
char c = 0;
|
||||
mSymbols.fBufferSubData(target, size-1, 1, &c);
|
||||
}
|
||||
|
||||
AFTER_GL_CALL;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче