mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 08:31:56 +00:00
*** empty log message ***
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@140 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
791e699b70
commit
6214dc8b12
4
Makefile
4
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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user