ir_to_mesa: Allow ir_return in main().
I didn't expect that this would really work, but it turns out there are shaders in the wild that do it. Fixes: (with swrast) glsl-fs-main-return glsl-vs-main-return
This commit is contained in:
parent
1cdef8e90a
commit
35220fc598
1 changed files with 2 additions and 2 deletions
|
|
@ -2129,12 +2129,12 @@ ir_to_mesa_visitor::visit(ir_texture *ir)
|
|||
void
|
||||
ir_to_mesa_visitor::visit(ir_return *ir)
|
||||
{
|
||||
assert(current_function);
|
||||
|
||||
if (ir->get_value()) {
|
||||
ir_to_mesa_dst_reg l;
|
||||
int i;
|
||||
|
||||
assert(current_function);
|
||||
|
||||
ir->get_value()->accept(this);
|
||||
ir_to_mesa_src_reg r = this->result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue