glewInit();
#ifdef __unix__
+ glxewInit();
dpy = glXGetCurrentDisplay();
win = glXGetCurrentDrawable();
#endif
+#ifdef _WIN32
+ wglewInit();
+}
+#endif
return 0;
}
void gl_swap_interval(int val)
{
#ifdef __unix__
- if(GLX_EXT_swap_control) {
+ if(GLXEW_EXT_swap_control) {
glXSwapIntervalEXT(dpy, win, val);
- } else if(GLX_SGI_swap_control) {
+ } else if(GLXEW_SGI_swap_control) {
glXSwapIntervalSGI(val);
}
#endif
#ifdef _WIN32
- if(WGL_EXT_swap_control) {
+ if(WGLEW_EXT_swap_control) {
wglSwapIntervalEXT(val);
}
#endif