projects
/
gltest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3e64833
)
require GLX 1.4
author
Ralf Jung
<post@ralfj.de>
Sun, 17 Nov 2013 17:54:03 +0000
(18:54 +0100)
committer
Ralf Jung
<post@ralfj.de>
Sun, 17 Nov 2013 17:54:03 +0000
(18:54 +0100)
glxbackend.cpp
patch
|
blob
|
history
diff --git
a/glxbackend.cpp
b/glxbackend.cpp
index f556a64ac3a4868daafc9ea5beed5b3dc562bb58..d636f677fc29b75e11236a436bf998344510163b 100644
(file)
--- a/
glxbackend.cpp
+++ b/
glxbackend.cpp
@@
-58,9
+58,9
@@
VisualID GLXBackend::initialize(Display *display)
int glxMajor, glxMinor;
glXQueryVersion(display, &glxMajor, &glxMinor);
printf("Using GLX version: %d.%d\n", glxMajor, glxMinor);
int glxMajor, glxMinor;
glXQueryVersion(display, &glxMajor, &glxMinor);
printf("Using GLX version: %d.%d\n", glxMajor, glxMinor);
- if (glxMajor == 1 && glxMinor <
3
) {
- // glXChooseFBConfig and glXCreateNewContext require GLX 1.3
- die("Need at least GLX 1.
3
to function properly\n");
+ if (glxMajor == 1 && glxMinor <
4
) {
+ // glXChooseFBConfig and glXCreateNewContext require GLX 1.3
; GLX_ARB_create_context requires GLX 1.4
+ die("Need at least GLX 1.
4
to function properly\n");
}
// check for extension-based functions
funSwapIntervalMesa = (PFNGLXSWAPINTERVALMESAPROC)resolveGLXFunction("GLX_MESA_swap_control", "glXSwapIntervalMESA");
}
// check for extension-based functions
funSwapIntervalMesa = (PFNGLXSWAPINTERVALMESAPROC)resolveGLXFunction("GLX_MESA_swap_control", "glXSwapIntervalMESA");