mirror of https://github.com/PCSX2/pcsx2.git
gs-hw: Sync external shader logs between gl and d3d11.
This commit is contained in:
parent
2a409af54e
commit
35c50e01e1
|
@ -1609,14 +1609,14 @@ void GSDeviceOGL::DoExternalFX(GSTexture* sTex, GSTexture* dTex)
|
||||||
if (fconfig.good())
|
if (fconfig.good())
|
||||||
config << fconfig.rdbuf();
|
config << fconfig.rdbuf();
|
||||||
else
|
else
|
||||||
fprintf(stderr, "Warning failed to load '%s'. External Shader might be wrongly configured\n", config_name.c_str());
|
fprintf(stderr, "GS: External shader config '%s' not loaded.\n", config_name.c_str());
|
||||||
|
|
||||||
std::string shader_name(theApp.GetConfigS("shaderfx_glsl"));
|
std::string shader_name(theApp.GetConfigS("shaderfx_glsl"));
|
||||||
std::ifstream fshader(shader_name);
|
std::ifstream fshader(shader_name);
|
||||||
std::stringstream shader;
|
std::stringstream shader;
|
||||||
if (!fshader.good())
|
if (!fshader.good())
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Error failed to load '%s'. External Shader will be disabled !\n", shader_name.c_str());
|
fprintf(stderr, "GS: External shader '%s' not loaded and will be disabled!\n", shader_name.c_str());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
shader << fshader.rdbuf();
|
shader << fshader.rdbuf();
|
||||||
|
|
Loading…
Reference in New Issue