diff --git a/source/lib/ogl.cpp b/source/lib/ogl.cpp index 12325ba12a..9c9c3c8d90 100755 --- a/source/lib/ogl.cpp +++ b/source/lib/ogl.cpp @@ -26,7 +26,7 @@ extern "C" } -static const char* exts; +static const char* exts = NULL; // check if the extension is supported by the OpenGL implementation @@ -115,6 +115,10 @@ int ogl_get_gfx_info() return 0; } +const char* oglExtList() +{ + return exts; +} // call after each video mode change void oglInit() diff --git a/source/lib/ogl.h b/source/lib/ogl.h index 872afbd3d2..504796bf9b 100755 --- a/source/lib/ogl.h +++ b/source/lib/ogl.h @@ -96,6 +96,9 @@ extern void oglInit(); // gfx_card and gfx_drv_ver are unchanged on failure. extern int ogl_get_gfx_info(); +// return a NULL-terminated string (of unlimited length) containing +// a space-separated list of supported extensions. +const char* oglExtList(); #ifdef __cplusplus }