glsl2: move constructor into .cpp file to work around compiler bug
Fixes fd.o bug 29770 The refcount==0 assertion only failed on some systems. One example being 32-bit Linux with gcc 4.4.4.
This commit is contained in:
@@ -34,6 +34,18 @@
|
||||
#include "ir_variable_refcount.h"
|
||||
#include "glsl_types.h"
|
||||
|
||||
|
||||
// constructor
|
||||
variable_entry::variable_entry(ir_variable *var)
|
||||
{
|
||||
this->var = var;
|
||||
assign = NULL;
|
||||
assigned_count = 0;
|
||||
declaration = false;
|
||||
referenced_count = 0;
|
||||
}
|
||||
|
||||
|
||||
variable_entry *
|
||||
ir_variable_refcount_visitor::get_variable_entry(ir_variable *var)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user