Bug 908905 - Reduce blocking of packed_depth_stencil on mac+nv. r=bjacob

This commit is contained in:
Jeff Gilbert 2013-08-27 18:00:16 -04:00
parent 73253ed26f
commit 3c332b6649

View File

@ -435,6 +435,17 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl)
if (Renderer() == RendererAdrenoTM320) {
MarkUnsupported(GLFeature::standard_derivatives);
}
#ifdef XP_MACOSX
// The Mac Nvidia driver, for versions up to and including 10.8, don't seem
// to properly support this. See 814839
// this has been fixed in Mac OS X 10.9. See 907946
if (Vendor() == gl::GLContext::VendorNVIDIA &&
!nsCocoaFeatures::OnMavericksOrLater())
{
MarkUnsupported(GLFeature::depth_texture);
}
#endif
}
NS_ASSERTION(!IsExtensionSupported(GLContext::ARB_pixel_buffer_object) ||
@ -917,18 +928,6 @@ GLContext::InitExtensions()
MarkExtensionSupported(OES_EGL_sync);
}
#ifdef XP_MACOSX
// The Mac Nvidia driver, for versions up to and including 10.8, don't seem
// to properly support this. See 814839
// this has been fixed in Mac OS X 10.9. See 907946
if (WorkAroundDriverBugs() &&
Vendor() == gl::GLContext::VendorNVIDIA &&
!nsCocoaFeatures::OnMavericksOrLater())
{
MarkExtensionUnsupported(gl::GLContext::EXT_packed_depth_stencil);
}
#endif
#ifdef DEBUG
firstRun = false;
#endif