diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:43:16 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-11-22 02:43:16 +0000 |
commit | fd509fe9c794932f461419091dcc98c91f443a3e (patch) | |
tree | c6541c3a3da8255446ca8bc65fa4f9a0b4a63863 /lib/mesa/src/gallium/auxiliary/util/u_surfaces.c | |
parent | 13a2c6cc687d73ecdd9289a961daaf0cf0f871d4 (diff) |
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/util/u_surfaces.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/util/u_surfaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/util/u_surfaces.c b/lib/mesa/src/gallium/auxiliary/util/u_surfaces.c index 78b2506e4..c2f2b74c9 100644 --- a/lib/mesa/src/gallium/auxiliary/util/u_surfaces.c +++ b/lib/mesa/src/gallium/auxiliary/util/u_surfaces.c @@ -59,7 +59,7 @@ util_surfaces_do_get(struct util_surfaces *us, unsigned surface_struct_size, } ps = (struct pipe_surface *)CALLOC(1, surface_struct_size); - if (!ps) + if(!ps) { *res = NULL; return FALSE; @@ -114,7 +114,7 @@ util_surfaces_destroy(struct util_surfaces *us, struct pipe_resource *pt, void ( for(i = 0; i <= pt->last_level; ++i) { struct pipe_surface *ps = us->u.array[i]; - if (ps) + if(ps) destroy_surface(ps); } FREE(us->u.array); |