mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
glx: return True/False instead of GL_TRUE/GL_FALSE
Just to be consistent with the functions' Bool return type. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
d171bc9d19
commit
482c43a946
1 changed files with 11 additions and 11 deletions
|
|
@ -230,7 +230,7 @@ glx_context_init(struct glx_context *gc,
|
|||
{
|
||||
gc->majorOpcode = __glXSetupForCommand(psc->display->dpy);
|
||||
if (!gc->majorOpcode)
|
||||
return GL_FALSE;
|
||||
return False;
|
||||
|
||||
gc->screen = psc->scr;
|
||||
gc->psc = psc;
|
||||
|
|
@ -238,7 +238,7 @@ glx_context_init(struct glx_context *gc,
|
|||
gc->isDirect = GL_TRUE;
|
||||
gc->currentContextTag = -1;
|
||||
|
||||
return GL_TRUE;
|
||||
return True;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -435,13 +435,13 @@ glXQueryVersion(Display * dpy, int *major, int *minor)
|
|||
/* Init the extension. This fetches the major and minor version. */
|
||||
priv = __glXInitialize(dpy);
|
||||
if (!priv)
|
||||
return GL_FALSE;
|
||||
return False;
|
||||
|
||||
if (major)
|
||||
*major = priv->majorVersion;
|
||||
if (minor)
|
||||
*minor = priv->minorVersion;
|
||||
return GL_TRUE;
|
||||
return True;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -569,7 +569,7 @@ glXCopyContext(Display * dpy, GLXContext source_user,
|
|||
* \param dpy Display where the context was created.
|
||||
* \param contextID ID of the context to be tested.
|
||||
*
|
||||
* \returns \c GL_TRUE if the context is direct rendering or not.
|
||||
* \returns \c True if the context is direct rendering or not.
|
||||
*/
|
||||
static Bool
|
||||
__glXIsDirect(Display * dpy, GLXContextID contextID)
|
||||
|
|
@ -582,7 +582,7 @@ __glXIsDirect(Display * dpy, GLXContextID contextID)
|
|||
|
||||
opcode = __glXSetupForCommand(dpy);
|
||||
if (!opcode) {
|
||||
return GL_FALSE;
|
||||
return False;
|
||||
}
|
||||
|
||||
c = XGetXCBConnection(dpy);
|
||||
|
|
@ -601,7 +601,7 @@ __glXIsDirect(Display * dpy, GLXContextID contextID)
|
|||
|
||||
/**
|
||||
* \todo
|
||||
* Shouldn't this function \b always return \c GL_FALSE when
|
||||
* Shouldn't this function \b always return \c False when
|
||||
* \c GLX_DIRECT_RENDERING is not defined? Do we really need to bother with
|
||||
* the GLX protocol here at all?
|
||||
*/
|
||||
|
|
@ -611,13 +611,13 @@ glXIsDirect(Display * dpy, GLXContext gc_user)
|
|||
struct glx_context *gc = (struct glx_context *) gc_user;
|
||||
|
||||
if (!gc) {
|
||||
return GL_FALSE;
|
||||
return False;
|
||||
}
|
||||
else if (gc->isDirect) {
|
||||
return GL_TRUE;
|
||||
return True;
|
||||
}
|
||||
#ifdef GLX_USE_APPLEGL /* TODO: indirect on darwin */
|
||||
return GL_FALSE;
|
||||
return False;
|
||||
#else
|
||||
return __glXIsDirect(dpy, gc->xid);
|
||||
#endif
|
||||
|
|
@ -843,7 +843,7 @@ glXGetConfig(Display * dpy, XVisualInfo * vis, int attribute,
|
|||
** supported by the OpenGL implementation on the server.
|
||||
*/
|
||||
if ((status == GLX_BAD_VISUAL) && (attribute == GLX_USE_GL)) {
|
||||
*value_return = GL_FALSE;
|
||||
*value_return = False;
|
||||
status = Success;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue