mirror of
https://github.com/libretro/pcsx2.git
synced 2025-02-27 04:45:30 +00:00
gsdx ocl: avoid a crash if ocl is selected but not enabled
This commit is contained in:
parent
767b841fea
commit
ee34bd724f
@ -267,9 +267,13 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
|
||||
case 14: case 15: case 16: case 17:
|
||||
#ifdef ENABLE_OPENCL
|
||||
s_gs = new GSRendererCL();
|
||||
#else
|
||||
printf("GSdx error: opencl is disabled\n");
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
if (s_gs == NULL)
|
||||
return -1;
|
||||
|
||||
s_renderer = renderer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user