mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-08 13:43:27 +02:00
[GPU/Common/DX9/GLES/Software] Object out of scope optimization for better codegeneration (lower level scope)
This commit is contained in:
@@ -594,7 +594,6 @@ VSShader *ShaderManagerDX9::ApplyShader(bool useHWTransform, bool useHWTessellat
|
||||
vs = new VSShader(device_, VSID, codeBuffer_, useHWTransform);
|
||||
}
|
||||
if (!vs || vs->Failed()) {
|
||||
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
|
||||
if (!vs) {
|
||||
// TODO: Report this?
|
||||
ERROR_LOG(G3D, "Shader generation failed, falling back to software transform");
|
||||
@@ -602,6 +601,7 @@ VSShader *ShaderManagerDX9::ApplyShader(bool useHWTransform, bool useHWTessellat
|
||||
ERROR_LOG(G3D, "Shader compilation failed, falling back to software transform");
|
||||
}
|
||||
if (!g_Config.bHideSlowWarnings) {
|
||||
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
|
||||
g_OSD.Show(OSDType::MESSAGE_ERROR, gr->T("hardware transform error - falling back to software"), 2.5f);
|
||||
}
|
||||
delete vs;
|
||||
|
||||
Reference in New Issue
Block a user