summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/render/mglx.cpp1
-rw-r--r--src/render/mglx.h1
-rw-r--r--src/render/mglxinit.cpp1
-rw-r--r--src/render/mglxtypes.h1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/render/mglx.cpp b/src/render/mglx.cpp
index 73beb959c..b5390fb11 100644
--- a/src/render/mglx.cpp
+++ b/src/render/mglx.cpp
@@ -32,5 +32,6 @@ defName(glXCreateContextAttribs);
defName(glXChooseFBConfig);
defName(glXDestroyContext);
defName(glXMakeCurrent);
+defName(glXSwapBuffers);
#endif
diff --git a/src/render/mglx.h b/src/render/mglx.h
index 2e0c93364..d0a626b9a 100644
--- a/src/render/mglx.h
+++ b/src/render/mglx.h
@@ -34,6 +34,7 @@ defNameE(glXCreateContextAttribs);
defNameE(glXChooseFBConfig);
defNameE(glXDestroyContext);
defNameE(glXMakeCurrent);
+defNameE(glXSwapBuffers);
#undef defNameE
diff --git a/src/render/mglxinit.cpp b/src/render/mglxinit.cpp
index bcf9eb31e..8908b1b4f 100644
--- a/src/render/mglxinit.cpp
+++ b/src/render/mglxinit.cpp
@@ -36,6 +36,7 @@ void Glx::initFunctions()
assignFunction(glXChooseFBConfig, "glXChooseFBConfig");
assignFunction(glXDestroyContext, "glXDestroyContext");
assignFunction(glXMakeCurrent, "glXMakeCurrent");
+ assignFunction(glXSwapBuffers, "glXSwapBuffers");
}
#endif
diff --git a/src/render/mglxtypes.h b/src/render/mglxtypes.h
index d8d66bdab..52da8dcf5 100644
--- a/src/render/mglxtypes.h
+++ b/src/render/mglxtypes.h
@@ -44,6 +44,7 @@ typedef GLXFBConfig *(*glXChooseFBConfig_t) (Display *dpy, int screen,
typedef void (*glXDestroyContext_t) (Display *dpy, void *ctx);
typedef bool (*glXMakeCurrent_t) (Display *dpy,
GLXDrawable drawable, void *ctx);
+typedef void (*glXSwapBuffers_t) (Display *dpy, GLXDrawable drawable);
#endif // USE_OPENGL
#endif // RENDER_MGLXTYPES_H