gsdx:windows: Fix crash on psx side of plugin

I forgot it had a psx emu interface.
This commit is contained in:
Jonathan Li 2016-04-09 19:39:54 +01:00
parent 23289c09bb
commit fb97de7f79
2 changed files with 6 additions and 0 deletions

View File

@ -74,6 +74,7 @@ EXPORT_C_(int32) GPUclose()
s_gpu = NULL;
#ifdef _WIN32
GSDeviceDX::FreeD3DCompiler();
if(SUCCEEDED(s_hr))
{
@ -105,6 +106,8 @@ EXPORT_C_(int32) GPUopen(void* hWnd)
return -1;
}
if (!GSDeviceDX::LoadD3DCompiler())
return -1;
#endif
int renderer = theApp.GetConfig("Renderer", 1);

View File

@ -74,6 +74,7 @@ EXPORT_C_(int32) GPUclose()
s_gpu = NULL;
#ifdef _WIN32
GSDeviceDX::FreeD3DCompiler();
if(SUCCEEDED(s_hr))
{
@ -105,6 +106,8 @@ EXPORT_C_(int32) GPUopen(void* hWnd)
return -1;
}
if (!GSDeviceDX::LoadD3DCompiler())
return -1;
#endif
int renderer = theApp.GetConfig("Renderer", 1);