From: Jakob Bornecrantz Date: Sat, 23 Apr 2011 15:01:19 +0000 (+0200) Subject: glu: Fix linux build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fed8a07ddbf0bf647300bd3e8732bfeb984054c2;p=mesa.git glu: Fix linux build --- diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c index 71e76afb872..415dfaa5411 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);