summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2006-05-01 22:25:18 +0000
committerAdam Jackson <[email protected]>2006-05-01 22:25:18 +0000
commit015762455764e3b467f0df769d51d0ed0ea3ee2c (patch)
tree832cd61acd1d5ec15f80065b631c7fcd5eb37306
parentae7f22f1ef53c79c8b27792a93a44b28271185d4 (diff)
Update function signatures for EXT_tfp entrypoints.
-rw-r--r--include/GL/glx.h4
-rw-r--r--src/glx/x11/glxcmds.c20
2 files changed, 10 insertions, 14 deletions
diff --git a/include/GL/glx.h b/include/GL/glx.h
index f4cc50b90f4..165d105b882 100644
--- a/include/GL/glx.h
+++ b/include/GL/glx.h
@@ -425,8 +425,8 @@ typedef int (*PFNGLXGETSWAPINTERVALMESAPROC)(void);
/* XXX need enums/tokens! */
-extern Bool glXBindTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
-extern Bool glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer);
+extern void glXBindTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
+extern void glXReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, int buffer);
#endif /* GLX_EXT_texture_from_pixmap */
diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index c34bbc5d215..d0f5e9a3629 100644
--- a/src/glx/x11/glxcmds.c
+++ b/src/glx/x11/glxcmds.c
@@ -2641,7 +2641,7 @@ PUBLIC Bool glXSet3DfxModeMESA( int mode )
}
/*@}*/
-PUBLIC Bool glXBindTexImageEXT(Display *dpy,
+PUBLIC void glXBindTexImageEXT(Display *dpy,
GLXDrawable drawable,
int buffer,
const int *attrib_list)
@@ -2656,7 +2656,7 @@ PUBLIC Bool glXBindTexImageEXT(Display *dpy,
unsigned int i;
if (gc == NULL)
- return False;
+ return;
i = 0;
if (attrib_list) {
@@ -2666,12 +2666,12 @@ PUBLIC Bool glXBindTexImageEXT(Display *dpy,
#ifdef GLX_DIRECT_RENDERING
if (gc->isDirect)
- return False;
+ return;
#endif
opcode = __glXSetupForCommand(dpy);
if (!opcode)
- return False;
+ return;
LockDisplay(dpy);
GetReqExtra(GLXVendorPrivate, 12 + 8 * i,req);
@@ -2701,11 +2701,9 @@ PUBLIC Bool glXBindTexImageEXT(Display *dpy,
UnlockDisplay(dpy);
SyncHandle();
-
- return True;
}
-PUBLIC Bool glXReleaseTexImageEXT(Display *dpy,
+PUBLIC void glXReleaseTexImageEXT(Display *dpy,
GLXDrawable drawable,
int buffer)
{
@@ -2716,16 +2714,16 @@ PUBLIC Bool glXReleaseTexImageEXT(Display *dpy,
CARD8 opcode;
if (gc == NULL)
- return False;
+ return;
#ifdef GLX_DIRECT_RENDERING
if (gc->isDirect)
- return False;
+ return;
#endif
opcode = __glXSetupForCommand(dpy);
if (!opcode)
- return False;
+ return;
LockDisplay(dpy);
GetReqExtra(GLXVendorPrivate, sizeof(CARD32)+sizeof(INT32),req);
@@ -2742,8 +2740,6 @@ PUBLIC Bool glXReleaseTexImageEXT(Display *dpy,
UnlockDisplay(dpy);
SyncHandle();
-
- return True;
}
/**