projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af808af
)
removed unused visInfo var
author
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 12 Dec 2004 22:24:09 +0000
(22:24 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Sun, 12 Dec 2004 22:24:09 +0000
(22:24 +0000)
progs/xdemos/glxpbdemo.c
patch
|
blob
|
history
diff --git
a/progs/xdemos/glxpbdemo.c
b/progs/xdemos/glxpbdemo.c
index 9bdf2ff74668811920b8d56bfcd9c777a7534a86..91fd30dcaa693afc949229407323a472033e837d 100644
(file)
--- a/
progs/xdemos/glxpbdemo.c
+++ b/
progs/xdemos/glxpbdemo.c
@@
-138,7
+138,6
@@
static int
Setup(int width, int height)
{
#if defined(GLX_VERSION_1_3) || defined(GLX_VERSION_1_4)
- XVisualInfo *visInfo;
GLXContext glCtx;
/* Open the X display */
@@
-175,7
+174,6
@@
Setup(int width, int height)
}
else {
printf("Error: Couldn't create GLXContext\n");
- XFree(visInfo);
XCloseDisplay(gDpy);
return 0;
}
@@
-183,7
+181,6
@@
Setup(int width, int height)
/* Bind context to pbuffer */
if (!glXMakeCurrent(gDpy, gPBuffer, glCtx)) {
printf("Error: glXMakeCurrent failed\n");
- XFree(visInfo);
XCloseDisplay(gDpy);
return 0;
}