summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-10-19 08:23:10 -0600
committerBrian Paul <[email protected]>2013-10-22 08:20:45 -0600
commitf166fbae36b09461eff465ca4c2223c03eb5e673 (patch)
tree4233da4c3d8095a0579cdba40080da41ec680ede /src/gallium
parentf0d4636d9c4098fd7ccc533258e7a5173e98d847 (diff)
st/dri: minor formatting clean-ups in dri_context.c
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 031e951b9db..ee3c8be860b 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -39,8 +39,9 @@
#include "pipe/p_context.h"
#include "state_tracker/st_context.h"
-static void dri_fill_st_options(struct st_config_options *options,
- const struct driOptionCache * optionCache)
+static void
+dri_fill_st_options(struct st_config_options *options,
+ const struct driOptionCache * optionCache)
{
options->disable_blend_func_extended =
driQueryOptionb(optionCache, "disable_blend_func_extended");
@@ -179,7 +180,8 @@ dri_destroy_context(__DRIcontext * cPriv)
ctx->st->flush(ctx->st, 0, NULL);
ctx->st->destroy(ctx->st);
- if (ctx->pp) pp_free(ctx->pp);
+ if (ctx->pp)
+ pp_free(ctx->pp);
free(ctx);
}
@@ -257,7 +259,7 @@ dri_get_current(__DRIscreen *sPriv)
st = stapi->get_current(stapi);
- return (struct dri_context *) (st) ? st->st_manager_private : NULL;
+ return (struct dri_context *) st ? st->st_manager_private : NULL;
}
/* vim: set sw=3 ts=8 sts=3 expandtab: */