mirror of https://github.com/PCSX2/pcsx2.git
gsdx: allow to test glsl shader without replayer
This way users can test it too.
This commit is contained in:
parent
2f9d5334ee
commit
84744d429e
|
@ -442,6 +442,13 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
|
|||
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (renderer == 12 && theApp.GetConfig("debug_glsl_shader", 0) == 2) {
|
||||
printf("GSdx: test OpenGL shader. Please wait...\n\n");
|
||||
dynamic_cast<GSDeviceOGL*>(s_gs->m_dev)->SelfShaderTest();
|
||||
printf("\nGSdx: test OpenGL shader done. It will now exit\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -1521,11 +1528,6 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer)
|
|||
}
|
||||
if (s_gs->m_wnd == NULL) return;
|
||||
|
||||
if (theApp.GetConfig("debug_glsl_shader", 0) == 2) {
|
||||
dynamic_cast<GSDeviceOGL*>(s_gs->m_dev)->SelfShaderTest();
|
||||
return;
|
||||
}
|
||||
|
||||
{ // Read .gs content
|
||||
std::string f(lpszCmdLine);
|
||||
#ifdef LZMA_SUPPORTED
|
||||
|
|
Loading…
Reference in New Issue