gsdx: allow to test glsl shader without replayer

This way users can test it too.
This commit is contained in:
Gregory Hainaut 2015-08-13 08:46:41 +02:00
parent 2f9d5334ee
commit 84744d429e
1 changed files with 7 additions and 5 deletions

View File

@ -443,6 +443,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