Fixed enableErrorChecking.

This commit is contained in:
NathanSweet 2014-07-25 16:40:40 +02:00
parent ff926a2b8e
commit e6ba25c59b
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ public class Main extends Sprite {
example = GoblinsExample;
_starling = new Starling(example, stage);
_starling.enableErrorChecking = true;
_starling.showStats = true;
_starling.start();
}

View File

@ -264,7 +264,7 @@ internal class PolygonBatch {
var fragmentShader:String =
"tex ft1, v1, fs0 " + flags + " \n" + // sample texture 0
"mul oc, ft1, v0 \n"; // multiply color with texel color
Starling.current.registerProgramFromSource(name, vertexShader, fragmentShader);
program = Starling.current.registerProgramFromSource(name, vertexShader, fragmentShader);
}
context.setProgram(program);
}