Bug 593867 - crash [@WebGLContext::ValidateProgram] in NVIDIA driver on Mac - r=vladimir

This commit is contained in:
Benoit Jacob 2010-11-05 15:57:58 -04:00
Родитель de95ac94af
Коммит 536a45de2c
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -3183,6 +3183,14 @@ WebGLContext::ValidateProgram(nsIWebGLProgram *pobj)
MakeContextCurrent();
#ifdef XP_MACOSX
if (gl->Vendor() == gl::GLContext::VendorNVIDIA) {
LogMessageIfVerbose("validateProgram: implemented as a no-operation "
"on Mac/NVIDIA to work around a driver crash");
return NS_OK;
}
#endif
gl->fValidateProgram(progname);
return NS_OK;