mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Detect whether the OpenGL implementation is software or handware by looking for "PixelFlinger" in GL_RENDERER
This commit is contained in:
parent
2c1dcdb7b4
commit
78c982f0c0
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user