prog/tests: Fix MSVC build.
authorVinson Lee <vlee@vmware.com>
Fri, 30 Oct 2009 21:02:21 +0000 (15:02 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Oct 2009 21:30:13 +0000 (15:30 -0600)
Signed-off-by: Brian Paul <brianp@vmware.com>
progs/tests/vao-02.c

index 7764ed51061df7e2c09bff9a0109b26fcbec8ff9..9f7f5c27792ba72b4b37454fe1a61a935a362382 100644 (file)
@@ -125,10 +125,10 @@ static void Init( void )
       exit(2);
    }
 
-   bind_vertex_array = glutGetProcAddress( "glBindVertexArrayAPPLE" );
-   gen_vertex_arrays = glutGetProcAddress( "glGenVertexArraysAPPLE" );
-   delete_vertex_arrays = glutGetProcAddress( "glDeleteVertexArraysAPPLE" );
-   is_vertex_array = glutGetProcAddress( "glIsVertexArrayAPPLE" );
+   bind_vertex_array = (PFNGLBINDVERTEXARRAYAPPLEPROC) glutGetProcAddress( "glBindVertexArrayAPPLE" );
+   gen_vertex_arrays = (PFNGLGENVERTEXARRAYSAPPLEPROC) glutGetProcAddress( "glGenVertexArraysAPPLE" );
+   delete_vertex_arrays = (PFNGLDELETEVERTEXARRAYSAPPLEPROC) glutGetProcAddress( "glDeleteVertexArraysAPPLE" );
+   is_vertex_array = (PFNGLISVERTEXARRAYAPPLEPROC) glutGetProcAddress( "glIsVertexArrayAPPLE" );
 
 
    (*gen_vertex_arrays)( 1, & obj );