Mesa (master): glu: Fix linux build

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Sat Apr 23 08:02:40 PDT 2011


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

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Sat Apr 23 17:01:19 2011 +0200

glu: Fix linux build

---

 src/glu/sgi/libutil/mipmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index 71e76af..415dfaa 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/libutil/mipmap.c
@@ -6648,7 +6648,7 @@ static void gluTexImage3D( GLenum target, GLint level,
 	 pTexImage3D = (TexImage3Dproc) wglGetProcAddress("glTexImage3DEXT");
 #else
       void *libHandle = dlopen("libgl.so", RTLD_LAZY);
-      pTexImage3D = TexImage3Dproc) dlsym(libHandle, "glTexImage3D" );
+      pTexImage3D = (TexImage3Dproc) dlsym(libHandle, "glTexImage3D" );
       if (!pTexImage3D)
 	 pTexImage3D = (TexImage3Dproc) dlsym(libHandle,"glTexImage3DEXT");
       dlclose(libHandle);



More information about the mesa-commit mailing list