Explorar el Código

use colorMatrix reference (don't copy)

ncannasse hace 9 años
padre
commit
56294ff690
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      h2d/Drawable.hx

+ 2 - 2
h2d/Drawable.hx

@@ -67,13 +67,13 @@ class Drawable extends Sprite {
 		if( s == null ) {
 			if( m != null ) {
 				s = addShader(new h3d.shader.ColorMatrix());
-				s.matrix.loadFrom(m);
+				s.matrix = m;
 			}
 		} else {
 			if( m == null )
 				removeShader(s);
 			else
-				s.matrix.loadFrom(m);
+				s.matrix = m;
 		}
 		return m;
 	}