ext/polygon.c in ray-0.2.0 vs ext/polygon.c in ray-0.2.1

- old
+ new

@@ -19,10 +19,11 @@ say_polygon *obj = say_polygon_create(0); VALUE rb = Data_Wrap_Struct(self, NULL, say_polygon_free, obj); say_drawable_set_shader_proc(obj->drawable, ray_drawable_shader_proc); say_drawable_set_other_data(obj->drawable, (void*)rb); + rb_iv_set(rb, "@shader_attributes", Qnil); return rb; } static @@ -70,10 +71,11 @@ ray_rb2col(color)); VALUE rb = Data_Wrap_Struct(self, NULL, say_polygon_free, line); say_drawable_set_shader_proc(line->drawable, ray_drawable_shader_proc); say_drawable_set_other_data(line->drawable, (void*)rb); + rb_iv_set(rb, "@shader_attributes", Qnil); return rb; } /* @@ -102,10 +104,11 @@ ray_polygon_make_outline(poly, outline_width, outline); say_drawable_set_shader_proc(poly->drawable, ray_drawable_shader_proc); say_drawable_set_other_data(poly->drawable, (void*)ret); + rb_iv_set(ret, "@shader_attributes", Qnil); return ret; } /* @@ -139,10 +142,11 @@ ray_polygon_make_outline(poly, rb_outline_width, rb_outline); say_drawable_set_shader_proc(poly->drawable, ray_drawable_shader_proc); say_drawable_set_other_data(poly->drawable, (void*)ret); + rb_iv_set(ret, "@shader_attributes", Qnil); return ret; } /* @@ -177,9 +181,10 @@ VALUE rb = Data_Wrap_Struct(self, NULL, say_polygon_free, poly); say_drawable_set_shader_proc(poly->drawable, ray_drawable_shader_proc); say_drawable_set_other_data(poly->drawable, (void*)rb); + rb_iv_set(rb, "@shader_attributes", Qnil); return rb; } /*