|
|
|
|
@ -34,7 +34,12 @@ namespace Magnum { namespace GL { namespace Implementation {
|
|
|
|
|
QueryState::QueryState(Context& context, std::vector<std::string>& extensions) { |
|
|
|
|
/* Create implementation */ |
|
|
|
|
#ifndef MAGNUM_TARGET_GLES |
|
|
|
|
if(context.isExtensionSupported<Extensions::ARB::direct_state_access>()) { |
|
|
|
|
if(context.isExtensionSupported<Extensions::ARB::direct_state_access>() |
|
|
|
|
#ifdef CORRADE_TARGET_WINDOWS |
|
|
|
|
&& (!(context.detectedDriver() & Context::DetectedDriver::IntelWindows) || |
|
|
|
|
context.isDriverWorkaroundDisabled("intel-windows-broken-dsa-indexed-queries")) |
|
|
|
|
#endif |
|
|
|
|
) { |
|
|
|
|
extensions.emplace_back(Extensions::ARB::direct_state_access::string()); |
|
|
|
|
createImplementation = &AbstractQuery::createImplementationDSA; |
|
|
|
|
|
|
|
|
|
|