mirror of https://github.com/adamdruppe/arsd.git
fix ketmars breakage lol
This commit is contained in:
parent
6a995b9800
commit
f26fb2a32d
|
@ -7701,7 +7701,7 @@ version(X11) {
|
||||||
}
|
}
|
||||||
if (vi is null || useLegacy) {
|
if (vi is null || useLegacy) {
|
||||||
static immutable GLint[5] attrs = [ GLX_RGBA, GLX_DEPTH_SIZE, 24, GLX_DOUBLEBUFFER, None ];
|
static immutable GLint[5] attrs = [ GLX_RGBA, GLX_DEPTH_SIZE, 24, GLX_DOUBLEBUFFER, None ];
|
||||||
vi = cast(XVisualInfo*)glXChooseVisual(cast(void*)display, 0, attrs.ptr);
|
vi = cast(XVisualInfo*)glXChooseVisual(display, 0, attrs.ptr);
|
||||||
useLegacy = true;
|
useLegacy = true;
|
||||||
}
|
}
|
||||||
if (vi is null) throw new Exception("no open gl visual found");
|
if (vi is null) throw new Exception("no open gl visual found");
|
||||||
|
@ -9968,7 +9968,7 @@ else {
|
||||||
extern(C) nothrow @nogc {
|
extern(C) nothrow @nogc {
|
||||||
|
|
||||||
|
|
||||||
/+
|
static if(!SdpyIsUsingIVGLBinds) {
|
||||||
enum GLX_USE_GL= 1; /* support GLX rendering */
|
enum GLX_USE_GL= 1; /* support GLX rendering */
|
||||||
enum GLX_BUFFER_SIZE= 2; /* depth of the color buffer */
|
enum GLX_BUFFER_SIZE= 2; /* depth of the color buffer */
|
||||||
enum GLX_LEVEL= 3; /* level in plane stacking */
|
enum GLX_LEVEL= 3; /* level in plane stacking */
|
||||||
|
@ -9995,7 +9995,7 @@ enum GLX_ACCUM_ALPHA_SIZE= 17; /* number of alpha accum bits */
|
||||||
enum GL_TRUE = 1;
|
enum GL_TRUE = 1;
|
||||||
enum GL_FALSE = 0;
|
enum GL_FALSE = 0;
|
||||||
alias int GLint;
|
alias int GLint;
|
||||||
+/
|
}
|
||||||
|
|
||||||
alias XID GLXContextID;
|
alias XID GLXContextID;
|
||||||
alias XID GLXPixmap;
|
alias XID GLXPixmap;
|
||||||
|
@ -10005,9 +10005,9 @@ alias XID GLXWindow;
|
||||||
alias XID GLXFBConfigID;
|
alias XID GLXFBConfigID;
|
||||||
alias void* GLXContext;
|
alias void* GLXContext;
|
||||||
|
|
||||||
/+
|
static if (!SdpyIsUsingIVGLBinds) {
|
||||||
XVisualInfo* glXChooseVisual(Display *dpy, int screen,
|
XVisualInfo* glXChooseVisual(Display *dpy, int screen,
|
||||||
int *attrib_list);
|
const int *attrib_list);
|
||||||
|
|
||||||
void glXCopyContext(Display *dpy, GLXContext src,
|
void glXCopyContext(Display *dpy, GLXContext src,
|
||||||
GLXContext dst, arch_ulong mask);
|
GLXContext dst, arch_ulong mask);
|
||||||
|
@ -10045,7 +10045,7 @@ alias void* GLXContext;
|
||||||
void glXWaitGL();
|
void glXWaitGL();
|
||||||
|
|
||||||
void glXWaitX();
|
void glXWaitX();
|
||||||
+/
|
}
|
||||||
|
|
||||||
|
|
||||||
struct XVisualInfo {
|
struct XVisualInfo {
|
||||||
|
|
Loading…
Reference in New Issue