support wiregl

This commit is contained in:
David Rose 2001-12-17 19:24:19 +00:00
parent e8205c91c2
commit 1117e9a497
3 changed files with 12 additions and 4 deletions

View File

@ -40,6 +40,10 @@ int gl_forced_pixfmt=config_wgldisplay.GetInt("gl-force-pixfmt", 0);
bool bResponsive_minimized_fullscreen_window = config_wgldisplay.GetBool("responsive-minimized-fullscreen-window",false);
// Set this true to not attempt to use any of the function calls that
// will crab out WireGL.
bool support_wiregl = config_wgldisplay.GetBool("support-wiregl", false);
extern void AtExitFn(void);
////////////////////////////////////////////////////////////////////

View File

@ -36,6 +36,7 @@ extern float gl_fps_meter_update_interval;
extern bool gl_sync_video;
extern int gl_forced_pixfmt;
extern bool bResponsive_minimized_fullscreen_window;
extern bool support_wiregl;
extern EXPCL_PANDAGL void init_libwgldisplay();

View File

@ -567,10 +567,13 @@ void wglGraphicsWindow::config(void) {
_extensions_str = tmpstr;
PFNWGLGETEXTENSIONSSTRINGEXTPROC wglGetExtensionsStringEXT;
PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB;
PFNWGLGETEXTENSIONSSTRINGEXTPROC wglGetExtensionsStringEXT = NULL;
PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB = NULL;
if (!support_wiregl) {
wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)wglGetProcAddress("wglGetExtensionsStringARB");
wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)wglGetProcAddress("wglGetExtensionsStringEXT");
}
if(wglGetExtensionsStringARB!=NULL) {
_extensions_str += " ";