mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
detect Mesa DRI
This commit is contained in:
parent
477aedaa7c
commit
5b5d6b9218
@ -122,7 +122,11 @@ reset() {
|
||||
FrameBufferProperties properties = get_properties();
|
||||
int frame_buffer_mode = properties.get_frame_buffer_mode();
|
||||
|
||||
if (_gl_renderer.find("Mesa") != string::npos) {
|
||||
// If "Mesa" is present, assume software. However, if "Mesa DRI" is
|
||||
// found, it's actually a Mesa-based OpenGL layer running over a
|
||||
// hardware driver.
|
||||
if (_gl_renderer.find("Mesa") != string::npos &&
|
||||
_gl_renderer.find("Mesa DRI") == string::npos) {
|
||||
// It's Mesa, therefore probably a software context.
|
||||
if (!software) {
|
||||
glxdisplay_cat.error()
|
||||
|
Loading…
x
Reference in New Issue
Block a user