diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2012-05-11 00:19:42 +0200 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2012-05-29 11:33:02 -0700 |
commit | f92b2e5e90f456491fc15b3b9612381a83726606 (patch) | |
tree | f9438d6564b7533449a59e02b735998dacb2d4d8 /src | |
parent | 89241336276deeef525b35bf5dc7db345a18a3e1 (diff) | |
download | external_mesa3d-f92b2e5e90f456491fc15b3b9612381a83726606.zip external_mesa3d-f92b2e5e90f456491fc15b3b9612381a83726606.tar.gz external_mesa3d-f92b2e5e90f456491fc15b3b9612381a83726606.tar.bz2 |
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 <kurt@roeckx.be>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-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 6f8bd69..647ba62 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); |