From 2cd240af0d261d4600e273badd912570a5a09a19 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 10 Mar 2017 00:01:23 +1000 Subject: VideoBackends: Move max texture size to VideoConfig This stops the virtual method call from within the Renderer constructor. The initialization here for GL had to be moved to VideoBackend, as the Renderer constructor will not have been executed before the value is required. --- Source/Core/VideoBackends/D3D/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Core/VideoBackends/D3D/main.cpp') diff --git a/Source/Core/VideoBackends/D3D/main.cpp b/Source/Core/VideoBackends/D3D/main.cpp index 1fe55046ed..a093a05ca5 100644 --- a/Source/Core/VideoBackends/D3D/main.cpp +++ b/Source/Core/VideoBackends/D3D/main.cpp @@ -61,6 +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.bSupportsExclusiveFullscreen = true; g_Config.backend_info.bSupportsDualSourceBlend = true; g_Config.backend_info.bSupportsPrimitiveRestart = true; -- cgit v1.2.3