diff options
author | Kurt Roeckx <[email protected]> | 2012-05-11 00:19:42 +0200 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-05-29 11:33:02 -0700 |
commit | f92b2e5e90f456491fc15b3b9612381a83726606 (patch) | |
tree | f9438d6564b7533449a59e02b735998dacb2d4d8 | |
parent | 89241336276deeef525b35bf5dc7db345a18a3e1 (diff) |
i830: Fix crash for GL_STENCIL_TEST in i830Enable()
commit 87f12bb2d95236c7b025d1a8be56b5ab1683d702 tried to fix rb->mt
being NULL, but change this case wrong.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Kurt Roeckx <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i915/i830_state.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i830_state.c b/src/mesa/drivers/dri/i915/i830_state.c index 6f8bd69481f..647ba62c03c 100644 --- a/src/mesa/drivers/dri/i915/i830_state.c +++ b/src/mesa/drivers/dri/i915/i830_state.c @@ -862,7 +862,7 @@ i830Enable(struct gl_context * ctx, GLenum cap, GLboolean state) if (ctx->DrawBuffer) { struct intel_renderbuffer *irbStencil = intel_get_renderbuffer(ctx->DrawBuffer, BUFFER_STENCIL); - hw_stencil = (irbStencil && irbStencil->mt->region); + hw_stencil = (irbStencil && irbStencil->mt); } if (hw_stencil) { I830_STATECHANGE(i830, I830_UPLOAD_CTX); |