diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-24 13:38:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-24 13:38:53 +0300 |
commit | c814609f6850c831adbd005ba6204b65dbaad096 (patch) | |
tree | eadb7cc5a540e7eb2de25529f65343dd9644adb5 /src | |
parent | a199ee013ee9f0182e5e66d3a1477cb9483b994b (diff) | |
download | mv-c814609f6850c831adbd005ba6204b65dbaad096.tar.gz mv-c814609f6850c831adbd005ba6204b65dbaad096.tar.bz2 mv-c814609f6850c831adbd005ba6204b65dbaad096.tar.xz mv-c814609f6850c831adbd005ba6204b65dbaad096.zip |
Add glXSwapBuffers into GLX functions.
Diffstat (limited to 'src')
-rw-r--r-- | src/render/mglx.cpp | 1 | ||||
-rw-r--r-- | src/render/mglx.h | 1 | ||||
-rw-r--r-- | src/render/mglxinit.cpp | 1 | ||||
-rw-r--r-- | src/render/mglxtypes.h | 1 |
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 |