From 6214dc8b12518e2fac0ae3c7089ed26dab5ac7c8 Mon Sep 17 00:00:00 2001 From: ikits Date: Fri, 26 Sep 2003 16:12:10 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@140 783a27ee-832a-0410-bc00-9f386506c6dd --- Makefile | 4 ++-- auto/src/glew_pre.c | 2 +- auto/src/glewinfo_post.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index cb12bcd..ec6819e 100644 --- a/Makefile +++ b/Makefile @@ -92,12 +92,12 @@ LD = ld ABI = -64# -n32 CC += $(ABI) LD += $(ABI) -CFLAGS.EXTRA = -woff 1110,1498 +CFLAGS.EXTRA = LDFLAGS.SO = -shared -soname $(LIB.SONAME) LDFLAGS.EXTRA = LDFLAGS.GL = -lGL -lXext -lX11 NAME = GLEW -WARN = -fullwarn +WARN = -fullwarn -woff 1110,1498 BIN.SUFFIX = LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR) LIB.DEVLNK = lib$(NAME).so diff --git a/auto/src/glew_pre.c b/auto/src/glew_pre.c index 641be2e..b6d7129 100644 --- a/auto/src/glew_pre.c +++ b/auto/src/glew_pre.c @@ -88,7 +88,7 @@ static void* dlGetProcAddress (const char* name) } if (gpa != NULL) - return ((void* (*)(const GLubyte*))gpa)(procName); + return ((void* (*)(const GLubyte*))gpa)((const GLubyte*)name); else return dlsym(h, name); } diff --git a/auto/src/glewinfo_post.c b/auto/src/glewinfo_post.c index dd11b72..29aaf00 100644 --- a/auto/src/glewinfo_post.c +++ b/auto/src/glewinfo_post.c @@ -152,7 +152,7 @@ void glewDestroyContext () { if (NULL != dpy && NULL != ctx) glXDestroyContext(dpy, ctx); if (NULL != dpy) XDestroyWindow(dpy, wnd); - XFreeColormap(dpy, cmap); + if (NULL != dpy) XFreeColormap(dpy, cmap); if (NULL != vi) XFree(vi); if (NULL != dpy) XCloseDisplay(dpy); }