From 50679c422202f3083fab8242db82d20a295e7da0 Mon Sep 17 00:00:00 2001 From: "Park, Jeongmin" Date: Wed, 4 Feb 2015 15:08:41 +0900 Subject: [PATCH 2/2] st/osmesa: Fix crash with postprocess without z buffer --- src/gallium/state_trackers/osmesa/osmesa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/osmesa/osmesa.c b/src/gallium/state_trackers/osmesa/osmesa.c index c52dae8..35fde8d 100644 --- a/src/gallium/state_trackers/osmesa/osmesa.c +++ b/src/gallium/state_trackers/osmesa/osmesa.c @@ -318,7 +318,7 @@ osmesa_st_framebuffer_flush_front(struct st_context_iface *stctx, unsigned y, bytes, bpp; int dst_stride; - if (osmesa->pp) { + if (osmesa->pp && osbuffer->textures[ST_ATTACHMENT_DEPTH_STENCIL]) { /* run the postprocess stage(s) */ pp_run(osmesa->pp, res, res, osbuffer->textures[ST_ATTACHMENT_DEPTH_STENCIL]); -- 2.0.2