mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-22 13:55:07 +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
|
ABI = -64# -n32
|
||||||
CC += $(ABI)
|
CC += $(ABI)
|
||||||
LD += $(ABI)
|
LD += $(ABI)
|
||||||
CFLAGS.EXTRA = -woff 1110,1498
|
CFLAGS.EXTRA =
|
||||||
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
LDFLAGS.SO = -shared -soname $(LIB.SONAME)
|
||||||
LDFLAGS.EXTRA =
|
LDFLAGS.EXTRA =
|
||||||
LDFLAGS.GL = -lGL -lXext -lX11
|
LDFLAGS.GL = -lGL -lXext -lX11
|
||||||
NAME = GLEW
|
NAME = GLEW
|
||||||
WARN = -fullwarn
|
WARN = -fullwarn -woff 1110,1498
|
||||||
BIN.SUFFIX =
|
BIN.SUFFIX =
|
||||||
LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR)
|
LIB.SONAME = lib$(NAME).so.$(GLEW_MAJOR)
|
||||||
LIB.DEVLNK = lib$(NAME).so
|
LIB.DEVLNK = lib$(NAME).so
|
||||||
|
@ -88,7 +88,7 @@ static void* dlGetProcAddress (const char* name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gpa != NULL)
|
if (gpa != NULL)
|
||||||
return ((void* (*)(const GLubyte*))gpa)(procName);
|
return ((void* (*)(const GLubyte*))gpa)((const GLubyte*)name);
|
||||||
else
|
else
|
||||||
return dlsym(h, name);
|
return dlsym(h, name);
|
||||||
}
|
}
|
||||||
|
@ -152,7 +152,7 @@ void glewDestroyContext ()
|
|||||||
{
|
{
|
||||||
if (NULL != dpy && NULL != ctx) glXDestroyContext(dpy, ctx);
|
if (NULL != dpy && NULL != ctx) glXDestroyContext(dpy, ctx);
|
||||||
if (NULL != dpy) XDestroyWindow(dpy, wnd);
|
if (NULL != dpy) XDestroyWindow(dpy, wnd);
|
||||||
XFreeColormap(dpy, cmap);
|
if (NULL != dpy) XFreeColormap(dpy, cmap);
|
||||||
if (NULL != vi) XFree(vi);
|
if (NULL != vi) XFree(vi);
|
||||||
if (NULL != dpy) XCloseDisplay(dpy);
|
if (NULL != dpy) XCloseDisplay(dpy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user