mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
fallback to XVisual interface if there are no FBConfig contexts (untested)
This commit is contained in:
parent
7ca69c16a1
commit
db5e5c6c5d
@ -375,8 +375,20 @@ choose_pixel_format(const FrameBufferProperties &properties,
|
|||||||
_visuals = 0;
|
_visuals = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
glxdisplay_cat.info()
|
glxdisplay_cat.warning()
|
||||||
<< "No suitable FBConfig contexts available.\n";
|
<< "No suitable FBConfig contexts available; using XVisual only.\n"
|
||||||
|
<< _fbprops << "\n";
|
||||||
|
|
||||||
|
_context = _temp_context;
|
||||||
|
_temp_context = (GLXContext)NULL;
|
||||||
|
|
||||||
|
// By convention, every indirect XVisual that can render to a
|
||||||
|
// window can also render to a GLXPixmap. Direct visuals we're
|
||||||
|
// not as sure about.
|
||||||
|
_context_has_pixmap = !glXIsDirect(_display, _context);
|
||||||
|
|
||||||
|
// Pbuffers aren't supported at all with the XVisual interface.
|
||||||
|
_context_has_pbuffer = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user