gsdx ogl linux: use OGL renderer by default otherwise it fallback to unsupported GSDeviceNull which badly crash

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5807 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2014-01-10 21:04:04 +00:00
parent 5309dd0e59
commit b5cad8bd6a
1 changed files with 6 additions and 0 deletions

View File

@ -416,7 +416,13 @@ static int _GSopen(void** dsp, char* title, int renderer, int threads = -1)
EXPORT_C_(int) GSopen2(void** dsp, uint32 flags)
{
#ifdef _LINUX
// Use ogl renderer as default otherwise it crash at startup
// GSRenderOGL only GSDeviceOGL (not GSDeviceNULL)
int renderer = theApp.GetConfig("renderer", 12);
#else
int renderer = theApp.GetConfig("renderer", 0);
#endif
if(flags & 4)
{