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:
Yonggang Luo 2022-07-28 13:37:18 +08:00 committed by Marge Bot
parent 73c51b5c57
commit 9caa6bb71a
1 changed files with 19 additions and 15 deletions

View File

@ -49,11 +49,13 @@ applegl_destroy_context(struct glx_context *gc)
} }
static int 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) GLXDrawable draw, GLXDrawable read)
{ {
Display *dpy = gc->psc->dpy; 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, (old && old != &dummyContext) ? old->driContext : NULL,
gc ? gc->driContext : NULL, draw); gc ? gc->driContext : NULL, draw);
@ -82,7 +84,8 @@ applegl_unbind_context(struct glx_context *gc, struct glx_context *new)
dpy = gc->psc->dpy; dpy = gc->psc->dpy;
error = apple_glx_make_current_context(dpy, error = apple_glx_make_current_context(
dpy,
(gc != &dummyContext) ? gc->driContext : NULL, (gc != &dummyContext) ? gc->driContext : NULL,
NULL, None); NULL, None);
@ -117,7 +120,8 @@ static const struct glx_context_vtable applegl_context_vtable = {
}; };
struct glx_context * struct glx_context *
applegl_create_context(struct glx_screen *psc, applegl_create_context(
struct glx_screen *psc,
struct glx_config *config, struct glx_config *config,
struct glx_context *shareList, int renderType) struct glx_context *shareList, int renderType)
{ {