mirror of https://github.com/PCSX2/pcsx2.git
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:
|
case 14: case 15: case 16: case 17:
|
||||||
#ifdef ENABLE_OPENCL
|
#ifdef ENABLE_OPENCL
|
||||||
s_gs = new GSRendererCL();
|
s_gs = new GSRendererCL();
|
||||||
|
#else
|
||||||
|
printf("GSdx error: opencl is disabled\n");
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (s_gs == NULL)
|
||||||
|
return -1;
|
||||||
|
|
||||||
s_renderer = renderer;
|
s_renderer = renderer;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue