glu: Fix linux build
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 23 Apr 2011 15:01:19 +0000 (17:01 +0200)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 23 Apr 2011 15:01:19 +0000 (17:01 +0200)
src/glu/sgi/libutil/mipmap.c

index 71e76afb8720ebe7652830e70b6910ddf84bd91a..415dfaa5411f95248d0f74a2655aa0cf32886370 100644 (file)
@@ -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);