summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-24 13:38:53 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-24 13:38:53 +0300
commitc814609f6850c831adbd005ba6204b65dbaad096 (patch)
treeeadb7cc5a540e7eb2de25529f65343dd9644adb5 /src/render
parenta199ee013ee9f0182e5e66d3a1477cb9483b994b (diff)
downloadmanaplus-c814609f6850c831adbd005ba6204b65dbaad096.tar.gz
manaplus-c814609f6850c831adbd005ba6204b65dbaad096.tar.bz2
manaplus-c814609f6850c831adbd005ba6204b65dbaad096.tar.xz
manaplus-c814609f6850c831adbd005ba6204b65dbaad096.zip
Add glXSwapBuffers into GLX functions.
Diffstat (limited to 'src/render')
-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