From e928dfb6c729f6b4d5156b3cb9b03b477ab5fbeb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 6 Oct 2010 18:34:36 +0000 Subject: [PATCH] From Jean-Sebastien Guay and Robert Osfield, build fix for Windows --- src/osg/glu/libutil/mipmap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/osg/glu/libutil/mipmap.cpp b/src/osg/glu/libutil/mipmap.cpp index 7bc2ef6ba..9854a7829 100644 --- a/src/osg/glu/libutil/mipmap.cpp +++ b/src/osg/glu/libutil/mipmap.cpp @@ -6617,6 +6617,12 @@ static void halve1DimagePackedPixel(int components, /*===========================================================================*/ +// Note from Robert Osfield, follows is a quick hack to windows compiling, will need to +// reactor code to properly manage extension checking platforms/GL targets. +#if defined(_WIN32) || defined(__WIN32__) + #define RESOLVE_3D_TEXTURE_SUPPORT +#endif + #ifdef RESOLVE_3D_TEXTURE_SUPPORT /* * This section ensures that GLU 1.3 will load and run on @@ -6639,6 +6645,7 @@ static TexImage3Dproc pTexImage3D = 0; # include # include #else + #include WINGDIAPI PROC WINAPI wglGetProcAddress(LPCSTR); #endif