mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-02 21:59:09 +08:00
Fixed enableErrorChecking.
This commit is contained in:
parent
ff926a2b8e
commit
e6ba25c59b
@ -16,6 +16,7 @@ public class Main extends Sprite {
|
|||||||
example = GoblinsExample;
|
example = GoblinsExample;
|
||||||
|
|
||||||
_starling = new Starling(example, stage);
|
_starling = new Starling(example, stage);
|
||||||
|
_starling.enableErrorChecking = true;
|
||||||
_starling.showStats = true;
|
_starling.showStats = true;
|
||||||
_starling.start();
|
_starling.start();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -264,7 +264,7 @@ internal class PolygonBatch {
|
|||||||
var fragmentShader:String =
|
var fragmentShader:String =
|
||||||
"tex ft1, v1, fs0 " + flags + " \n" + // sample texture 0
|
"tex ft1, v1, fs0 " + flags + " \n" + // sample texture 0
|
||||||
"mul oc, ft1, v0 \n"; // multiply color with texel color
|
"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);
|
context.setProgram(program);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user