glx: Convert tab to space in applegl_glx.c
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Eric Engestrom <eric@igalia.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17784>
This commit is contained in:
parent
73c51b5c57
commit
9caa6bb71a
|
@ -49,11 +49,13 @@ applegl_destroy_context(struct glx_context *gc)
|
|||
}
|
||||
|
||||
static int
|
||||
applegl_bind_context(struct glx_context *gc, struct glx_context *old,
|
||||
applegl_bind_context(
|
||||
struct glx_context *gc, struct glx_context *old,
|
||||
GLXDrawable draw, GLXDrawable read)
|
||||
{
|
||||
Display *dpy = gc->psc->dpy;
|
||||
bool error = apple_glx_make_current_context(dpy,
|
||||
bool error = apple_glx_make_current_context(
|
||||
dpy,
|
||||
(old && old != &dummyContext) ? old->driContext : NULL,
|
||||
gc ? gc->driContext : NULL, draw);
|
||||
|
||||
|
@ -82,7 +84,8 @@ applegl_unbind_context(struct glx_context *gc, struct glx_context *new)
|
|||
|
||||
dpy = gc->psc->dpy;
|
||||
|
||||
error = apple_glx_make_current_context(dpy,
|
||||
error = apple_glx_make_current_context(
|
||||
dpy,
|
||||
(gc != &dummyContext) ? gc->driContext : NULL,
|
||||
NULL, None);
|
||||
|
||||
|
@ -117,7 +120,8 @@ static const struct glx_context_vtable applegl_context_vtable = {
|
|||
};
|
||||
|
||||
struct glx_context *
|
||||
applegl_create_context(struct glx_screen *psc,
|
||||
applegl_create_context(
|
||||
struct glx_screen *psc,
|
||||
struct glx_config *config,
|
||||
struct glx_context *shareList, int renderType)
|
||||
{
|
||||
|
@ -146,7 +150,7 @@ applegl_create_context(struct glx_screen *psc,
|
|||
gc->driContext = NULL;
|
||||
|
||||
/* TODO: darwin: Integrate with above to do indirect */
|
||||
if(apple_glx_create_context(&gc->driContext, dpy, screen, config,
|
||||
if (apple_glx_create_context(&gc->driContext, dpy, screen, config,
|
||||
shareList ? shareList->driContext : NULL,
|
||||
&errorcode, &x11error)) {
|
||||
__glXSendError(dpy, errorcode, 0, X_GLXCreateContext, x11error);
|
||||
|
|
Loading…
Reference in New Issue