OSDN Git Service

progs/tests: Fix MSVC build.
authorVinson Lee <vlee@vmware.com>
Mon, 26 Oct 2009 21:03:31 +0000 (15:03 -0600)
committerVinson Lee <vlee@vmware.com>
Thu, 3 Dec 2009 23:45:18 +0000 (15:45 -0800)
(cherry picked from commit 50e113e375b4ecfdf5b60ccce7bbcdb1c5f2ca11)

progs/tests/stencil_twoside.c

index 1e18ca6..7d871e5 100644 (file)
@@ -274,9 +274,9 @@ static void Init( void )
    if (atof( ver_string ) < 2.0) {
       use20syntax = 0;
    }
-   stencil_func_separate = glutGetProcAddress( "glStencilFuncSeparate" );
-   stencil_func_separate_ati = glutGetProcAddress( "glStencilFuncSeparateATI" );
-   stencil_op_separate = glutGetProcAddress( "glStencilOpSeparate" );
+   stencil_func_separate = (PFNGLSTENCILFUNCSEPARATEPROC) glutGetProcAddress( "glStencilFuncSeparate" );
+   stencil_func_separate_ati = (PFNGLSTENCILFUNCSEPARATEATIPROC) glutGetProcAddress( "glStencilFuncSeparateATI" );
+   stencil_op_separate = (PFNGLSTENCILOPSEPARATEPROC) glutGetProcAddress( "glStencilOpSeparate" );
 
    printf("\nAll 5 squares should be the same color.\n");
 }