libgoatvr

diff src/opengl.c @ 30:1a8343ea54ce

fixed on windows
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 11 Apr 2015 04:01:47 +0300
parents 61feb3661397
children
line diff
     1.1 --- a/src/opengl.c	Wed Apr 08 02:32:22 2015 +0300
     1.2 +++ b/src/opengl.c	Sat Apr 11 04:01:47 2015 +0300
     1.3 @@ -7,11 +7,6 @@
     1.4  	Drawable win = glXGetCurrentDrawable();
     1.5  	glXSwapBuffers(dpy, win);
     1.6  }
     1.7 -
     1.8 -void (*vrimp_glfunc(const char *name))()
     1.9 -{
    1.10 -	return glXGetProcAddress((const unsigned char*)name);
    1.11 -}
    1.12  #endif	/* __unix__ */
    1.13  
    1.14  #ifdef WIN32
    1.15 @@ -20,11 +15,6 @@
    1.16  	HDC dc = wglGetCurrentDC();
    1.17  	SwapBuffers(dc);
    1.18  }
    1.19 -
    1.20 -void (*vrimp_glfunc(const char *name))()
    1.21 -{
    1.22 -	return (void (*)())wglGetProcAddress(name);
    1.23 -}
    1.24  #endif	/* WIN32 */
    1.25  
    1.26  #ifdef __APPLE__
    1.27 @@ -34,11 +24,4 @@
    1.28  	 * to a GLView class or whatever the fuck it's called... investigate further
    1.29  	 */
    1.30  }
    1.31 -
    1.32 -
    1.33 -void (*vrimp_glfunc(const char *name))()
    1.34 -{
    1.35 -	/* TODO: whatever */
    1.36 -	return 0;
    1.37 -}
    1.38  #endif	/* __APPLE__ */