diff options
author | Michal Krol <[email protected]> | 2006-05-30 09:38:16 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2006-05-30 09:38:16 +0000 |
commit | 23b7c7dc1469ba5bbd14f736a3c188c63cd4f280 (patch) | |
tree | d56b43599a3f39ad6ec2f073e91247733b15c55d /progs/slang/framework.c | |
parent | 44d5c8668a43fc06115ea83554bb2249ea4d2c6f (diff) |
Make it running under Linux.
Diffstat (limited to 'progs/slang/framework.c')
-rw-r--r-- | progs/slang/framework.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/progs/slang/framework.c b/progs/slang/framework.c index 80ee37f637f..692cef9c8cb 100644 --- a/progs/slang/framework.c +++ b/progs/slang/framework.c @@ -3,8 +3,10 @@ /* * GL_ARB_multitexture */ +#ifndef GL_ARB_multitexture PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB; PFNGLMULTITEXCOORD4FVARBPROC glMultiTexCoord4fvARB; +#endif /* * GL_ARB_shader_objects @@ -65,8 +67,10 @@ void InitFramework (int *argc, char *argv[]) glutInitDisplayMode (GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); glutCreateWindow (argv[0]); +#ifndef GL_ARB_multitexture GETPROCADDR(glClientActiveTextureARB, PFNGLCLIENTACTIVETEXTUREARBPROC); GETPROCADDR(glMultiTexCoord4fvARB, PFNGLMULTITEXCOORD4FVARBPROC); +#endif GETPROCADDR(glDeleteObjectARB, PFNGLDELETEOBJECTARBPROC); GETPROCADDR(glGetHandleARB, PFNGLGETHANDLEARBPROC); @@ -100,9 +104,6 @@ void InitFramework (int *argc, char *argv[]) InitScene (); - /*glutReshapeFunc (Reshape); - glutKeyboardFunc (Key); - glutSpecialFunc (SpecialKey);*/ glutDisplayFunc (Display); glutIdleFunc (Idle); glutMainLoop (); |