зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1401455 - Expose glxChooseVisual() in GLXLibrary r=jgilbert
MozReview-Commit-ID: CdG2TAJA2Yc
This commit is contained in:
Родитель
567187dd64
Коммит
ee03b7a943
|
@ -119,6 +119,7 @@ GLXLibrary::EnsureInitialized()
|
|||
|
||||
/* functions introduced in GLX 1.3 */
|
||||
SYMBOL(ChooseFBConfig),
|
||||
SYMBOL(ChooseVisual),
|
||||
SYMBOL(GetFBConfigAttrib),
|
||||
SYMBOL(GetFBConfigs),
|
||||
SYMBOL(CreatePixmap),
|
||||
|
|
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче