Detect whether the OpenGL implementation is software or handware by looking for "PixelFlinger" in GL_RENDERER

This commit is contained in:
rdb 2013-01-26 20:33:40 +00:00
parent 2c1dcdb7b4
commit 78c982f0c0

View File

@ -290,6 +290,15 @@ reset() {
#else
GLESGraphicsStateGuardian::reset();
#endif
// If "PixelFlinger" is present, assume software.
if (_gl_renderer.find("PixelFlinger") != string::npos) {
_fbprops.set_force_software(1);
_fbprops.set_force_hardware(0);
} else {
_fbprops.set_force_hardware(1);
_fbprops.set_force_software(0);
}
}
////////////////////////////////////////////////////////////////////