|
|
|
@ -124,9 +124,9 @@ bool WindowlessGlxApplication::tryCreateContext(const Configuration&) { |
|
|
|
and HOPEFULLY THERE WON'T BE MORE WORKAROUNDS */ |
|
|
|
and HOPEFULLY THERE WON'T BE MORE WORKAROUNDS */ |
|
|
|
|| (glXMakeContextCurrent(_display, _pbuffer, _pbuffer, _glContext) && |
|
|
|
|| (glXMakeContextCurrent(_display, _pbuffer, _pbuffer, _glContext) && |
|
|
|
(vendorString = reinterpret_cast<const char*>(glGetString(GL_VENDOR)), |
|
|
|
(vendorString = reinterpret_cast<const char*>(glGetString(GL_VENDOR)), |
|
|
|
!_context->isDriverWorkaroundDisabled("amd-nv-no-forward-compatible-core-context") && |
|
|
|
|
|
|
|
(std::strncmp(vendorString, nvidiaVendorString, sizeof(nvidiaVendorString)) == 0 || |
|
|
|
(std::strncmp(vendorString, nvidiaVendorString, sizeof(nvidiaVendorString)) == 0 || |
|
|
|
std::strncmp(vendorString, amdVendorString, sizeof(amdVendorString)) == 0))) |
|
|
|
std::strncmp(vendorString, amdVendorString, sizeof(amdVendorString)) == 0) && |
|
|
|
|
|
|
|
!_context->isDriverWorkaroundDisabled("amd-nv-no-forward-compatible-core-context"))) |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
) { |
|
|
|
) { |
|
|
|
/* Don't print any warning when doing the NV workaround, because the
|
|
|
|
/* Don't print any warning when doing the NV workaround, because the
|
|
|
|
|