[GPU/Common/DX9/GLES/Software] Object out of scope optimization for better codegeneration (lower level scope)

This commit is contained in:
Herman Semenov
2023-12-20 12:34:34 +03:00
parent 2a31f8c6c0
commit ca94de8d4b
8 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -804,9 +804,9 @@ Shader *ShaderManagerGLES::ApplyVertexShader(bool useHWTransform, bool useHWTess
// Vertex shader not in cache. Let's compile it.
vs = CompileVertexShader(*VSID);
if (!vs) {
auto gr = GetI18NCategory(I18NCat::GRAPHICS);
ERROR_LOG(G3D, "Vertex shader generation 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);
}