X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Fdemos%2Fvao_demo.c;h=ce416712fe264e1274cdd755cdc4ef80a83de88b;hb=49f82803cc6ceaf1ecc3928a5417ef300f73f37d;hp=b03781622199f3954cc0945c91972ae56ccf7324;hpb=d8bb5ea96704e2a7006f6bd6f3c9cc80c2cb4c73;p=mesa.git diff --git a/progs/demos/vao_demo.c b/progs/demos/vao_demo.c index b0378162219..ce416712fe2 100644 --- a/progs/demos/vao_demo.c +++ b/progs/demos/vao_demo.c @@ -22,6 +22,7 @@ * DEALINGS IN THE SOFTWARE. */ +#include #include #include #include @@ -280,11 +281,15 @@ static void Init( void ) exit(1); } - 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" ); + assert(bind_vertex_array); + assert(gen_vertex_arrays); + assert(delete_vertex_arrays); + assert(is_vertex_array); glEnable( GL_DEPTH_TEST );