Mesa (mesa_7_6_branch): progs/tests: fix MSVC build.

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 15:50:53 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: d3208678c2ea0e50be7b8eb68106f7650b37dfc6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d3208678c2ea0e50be7b8eb68106f7650b37dfc6

Author: Vinson Lee <vlee at vmware.com>
Date:   Fri Oct 30 09:39:51 2009 -0600

progs/tests: fix MSVC build.

Signed-off-by: Brian Paul <brianp at vmware.com>
(cherry picked from commit a8ed066858f12290239ddc9165b7c0734ccc0247)

---

 progs/tests/vao-01.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/progs/tests/vao-01.c b/progs/tests/vao-01.c
index 117fae8..e4a89cb 100644
--- a/progs/tests/vao-01.c
+++ b/progs/tests/vao-01.c
@@ -124,10 +124,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 );



More information about the mesa-commit mailing list