mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
D3D11: Fix error on startup with >2.5xIR selected
This commit is contained in:
@ -61,7 +61,7 @@ void VideoBackend::InitBackendInfo()
|
||||
}
|
||||
|
||||
g_Config.backend_info.api_type = APIType::D3D;
|
||||
g_Config.backend_info.MaxTextureSize = DX11::D3D::GetMaxTextureSize();
|
||||
g_Config.backend_info.MaxTextureSize = D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION;
|
||||
g_Config.backend_info.bSupportsExclusiveFullscreen = true;
|
||||
g_Config.backend_info.bSupportsDualSourceBlend = true;
|
||||
g_Config.backend_info.bSupportsPrimitiveRestart = true;
|
||||
@ -104,7 +104,9 @@ void VideoBackend::InitBackendInfo()
|
||||
g_Config.backend_info.AAModes.push_back(modes[i].Count);
|
||||
}
|
||||
|
||||
bool shader_model_5_supported = (DX11::D3D::GetFeatureLevel(ad) >= D3D_FEATURE_LEVEL_11_0);
|
||||
D3D_FEATURE_LEVEL feature_level = D3D::GetFeatureLevel(ad);
|
||||
bool shader_model_5_supported = feature_level >= D3D_FEATURE_LEVEL_11_0;
|
||||
g_Config.backend_info.MaxTextureSize = D3D::GetMaxTextureSize(feature_level);
|
||||
|
||||
// Requires the earlydepthstencil attribute (only available in shader model 5)
|
||||
g_Config.backend_info.bSupportsEarlyZ = shader_model_5_supported;
|
||||
|
Reference in New Issue
Block a user