summaryrefslogtreecommitdiff
path: root/src/render/mglxinit.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-12 19:03:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-12 19:03:01 +0300
commit04ef9efcdf1de5de7fc17cdc3aa6411757df9dd8 (patch)
tree9fae31b915432cdd2b09e180f6eb3dc8a664891f /src/render/mglxinit.cpp
parent52009c2a994e1f9cfdb8dfee6641a21ef49865c9 (diff)
downloadplus-04ef9efcdf1de5de7fc17cdc3aa6411757df9dd8.tar.gz
plus-04ef9efcdf1de5de7fc17cdc3aa6411757df9dd8.tar.bz2
plus-04ef9efcdf1de5de7fc17cdc3aa6411757df9dd8.tar.xz
plus-04ef9efcdf1de5de7fc17cdc3aa6411757df9dd8.zip
Simplify assignFunction and add two args function assignFunction2.
Diffstat (limited to 'src/render/mglxinit.cpp')
-rw-r--r--src/render/mglxinit.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/render/mglxinit.cpp b/src/render/mglxinit.cpp
index 8908b1b4f..e6763d45e 100644
--- a/src/render/mglxinit.cpp
+++ b/src/render/mglxinit.cpp
@@ -30,13 +30,13 @@
void Glx::initFunctions()
{
- assignFunction(glXCreateContext, "glXCreateContext");
- assignFunction(glXGetCurrentContext, "glXGetCurrentContext");
- assignFunction(glXCreateContextAttribs, "glXCreateContextAttribsARB");
- assignFunction(glXChooseFBConfig, "glXChooseFBConfig");
- assignFunction(glXDestroyContext, "glXDestroyContext");
- assignFunction(glXMakeCurrent, "glXMakeCurrent");
- assignFunction(glXSwapBuffers, "glXSwapBuffers");
+ assignFunction2(glXCreateContext, "glXCreateContext");
+ assignFunction2(glXGetCurrentContext, "glXGetCurrentContext");
+ assignFunction2(glXCreateContextAttribs, "glXCreateContextAttribsARB");
+ assignFunction2(glXChooseFBConfig, "glXChooseFBConfig");
+ assignFunction2(glXDestroyContext, "glXDestroyContext");
+ assignFunction2(glXMakeCurrent, "glXMakeCurrent");
+ assignFunction2(glXSwapBuffers, "glXSwapBuffers");
}
#endif