Bug 1401455 - Expose glxChooseVisual() in GLXLibrary r=jgilbert

MozReview-Commit-ID: CdG2TAJA2Yc
This commit is contained in:
James Willcox 2018-03-09 08:51:52 -06:00
parent 567187dd64
commit ee03b7a943
2 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,7 @@ GLXLibrary::EnsureInitialized()
/* functions introduced in GLX 1.3 */
SYMBOL(ChooseFBConfig),
SYMBOL(ChooseVisual),
SYMBOL(GetFBConfigAttrib),
SYMBOL(GetFBConfigs),
SYMBOL(CreatePixmap),

View File

@ -12,6 +12,7 @@ typedef realGLboolean GLboolean;
// stuff from glx.h
#include "X11/Xlib.h"
#include "X11/Xutil.h" // for XVisualInfo
typedef struct __GLXcontextRec* GLXContext;
typedef XID GLXPixmap;
typedef XID GLXDrawable;
@ -85,6 +86,9 @@ public:
GLXFBConfig* fChooseFBConfig(Display* display, int screen, const int* attrib_list, int* nelements) const
WRAP( fChooseFBConfig(display, screen, attrib_list, nelements) )
XVisualInfo* fChooseVisual(Display* display, int screen, int* attrib_list) const
WRAP( fChooseVisual(display, screen, attrib_list) )
GLXFBConfig* fGetFBConfigs(Display* display, int screen, int* nelements) const
WRAP( fGetFBConfigs(display, screen, nelements) )
@ -177,6 +181,7 @@ private:
GLXContext (GLAPIENTRY *fGetCurrentContext) ();
void* (GLAPIENTRY *fGetProcAddress) (const char*);
GLXFBConfig* (GLAPIENTRY *fChooseFBConfig) (Display*, int, const int*, int*);
XVisualInfo* (GLAPIENTRY *fChooseVisual) (Display*, int, const int*);
GLXFBConfig* (GLAPIENTRY *fGetFBConfigs) (Display*, int, int*);
GLXContext (GLAPIENTRY *fCreateNewContext) (Display*, GLXFBConfig, int,
GLXContext, Bool);