mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 10:50:23 +01:00
i965/gen6: Fix segfault in prepare_blend_state()
Don't dereference the color buffer if one isn't attached.
This fixes the following Piglit tests in my experimental HiZ branch:
glean/logicOp
glean/paths
Note: This is a candidate for the stable branches.
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad@chad-versace.us>
This commit is contained in:
parent
8c7c589c4e
commit
b48e02383e
1 changed files with 1 additions and 1 deletions
|
|
@ -64,7 +64,7 @@ prepare_blend_state(struct brw_context *brw)
|
|||
/* Floating point RTs should have no effect from LogicOp,
|
||||
* except for disabling of blending
|
||||
*/
|
||||
if (_mesa_get_format_datatype(rb->Format) != GL_FLOAT) {
|
||||
if (rb && _mesa_get_format_datatype(rb->Format) != GL_FLOAT) {
|
||||
blend[b].blend1.logic_op_enable = 1;
|
||||
blend[b].blend1.logic_op_func =
|
||||
intel_translate_logic_op(ctx->Color.LogicOp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue