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

Vinson Lee vlee at kemper.freedesktop.org
Thu Dec 3 15:45:44 PST 2009


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Oct 26 15:03:31 2009 -0600

progs/tests: Fix MSVC build.
(cherry picked from commit 50e113e375b4ecfdf5b60ccce7bbcdb1c5f2ca11)

---

 progs/tests/stencil_twoside.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/progs/tests/stencil_twoside.c b/progs/tests/stencil_twoside.c
index 1e18ca6..7d871e5 100644
--- a/progs/tests/stencil_twoside.c
+++ b/progs/tests/stencil_twoside.c
@@ -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");
 }



More information about the mesa-commit mailing list