|
@@ -12499,7 +12499,7 @@ var BABYLON;
|
|
this.applyStates();
|
|
this.applyStates();
|
|
this._drawCalls.addCount(1, false);
|
|
this._drawCalls.addCount(1, false);
|
|
// Render
|
|
// Render
|
|
- var drawMode = this.DrawMode(fillMode);
|
|
|
|
|
|
+ var drawMode = this._drawMode(fillMode);
|
|
var indexFormat = this._uintIndicesCurrentlySet ? this._gl.UNSIGNED_INT : this._gl.UNSIGNED_SHORT;
|
|
var indexFormat = this._uintIndicesCurrentlySet ? this._gl.UNSIGNED_INT : this._gl.UNSIGNED_SHORT;
|
|
var mult = this._uintIndicesCurrentlySet ? 4 : 2;
|
|
var mult = this._uintIndicesCurrentlySet ? 4 : 2;
|
|
if (instancesCount) {
|
|
if (instancesCount) {
|
|
@@ -12513,7 +12513,7 @@ var BABYLON;
|
|
// Apply states
|
|
// Apply states
|
|
this.applyStates();
|
|
this.applyStates();
|
|
this._drawCalls.addCount(1, false);
|
|
this._drawCalls.addCount(1, false);
|
|
- var drawMode = this.DrawMode(fillMode);
|
|
|
|
|
|
+ var drawMode = this._drawMode(fillMode);
|
|
if (instancesCount) {
|
|
if (instancesCount) {
|
|
this._gl.drawArraysInstanced(drawMode, verticesStart, verticesCount, instancesCount);
|
|
this._gl.drawArraysInstanced(drawMode, verticesStart, verticesCount, instancesCount);
|
|
}
|
|
}
|
|
@@ -12521,7 +12521,7 @@ var BABYLON;
|
|
this._gl.drawArrays(drawMode, verticesStart, verticesCount);
|
|
this._gl.drawArrays(drawMode, verticesStart, verticesCount);
|
|
}
|
|
}
|
|
};
|
|
};
|
|
- Engine.prototype.DrawMode = function (fillMode) {
|
|
|
|
|
|
+ Engine.prototype._drawMode = function (fillMode) {
|
|
switch (fillMode) {
|
|
switch (fillMode) {
|
|
// Triangle views
|
|
// Triangle views
|
|
case BABYLON.Material.TriangleFillMode:
|
|
case BABYLON.Material.TriangleFillMode:
|