From 8041bce333a48033975eb83d47ecc6bd7a91cd1d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 6 May 2010 11:17:47 -0700 Subject: [PATCH] ir_to_mesa: Support gl_FragData[] output. --- ir_to_mesa.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir_to_mesa.cpp b/ir_to_mesa.cpp index 40b7f65afbe..f8b37dd2028 100644 --- a/ir_to_mesa.cpp +++ b/ir_to_mesa.cpp @@ -465,8 +465,8 @@ ir_to_mesa_visitor::visit(ir_dereference_array *ir) MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_Y, SWIZZLE_Y), MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_X, SWIZZLE_X, SWIZZLE_X), }; - ir_variable *var = ir->var->as_variable(); - ir_constant *index = ir->selector.array_index->constant_expression_value(); + ir_variable *var = ir->variable_referenced(); + ir_constant *index = ir->array_index->constant_expression_value(); int file = PROGRAM_UNDEFINED; int base_index = 0; -- 2.30.2