Skip to content

Commit 32e255c

Browse files
author
mlarghydracept
committed
fixed a couple of problems
1 parent e43191d commit 32e255c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/webgl/material.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ p5.prototype.texture = function(){
121121
args[i] = arguments[i];
122122
}
123123
var gl = this._renderer.GL;
124-
gl.drawMode = 'texture';
124+
this._renderer.drawMode = 'texture';
125125
var shaderProgram = this._renderer._getShader('lightVert',
126126
'lightTextureFrag');
127127
gl.useProgram(shaderProgram);

src/webgl/p5.RendererGL.Immediate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function(mode, isCurve, isBezier,isQuadratic, isContour, shapeKind){
7676
this.immediateMode.vertexPositions,
7777
this.immediateMode.vertexColors);
7878
if(mode){
79-
if(this.drawMode === 'fill' || 'texture'){
79+
if(this.drawMode === 'fill' || this.drawMode ==='texture'){
8080
switch(this.immediateMode.shapeMode){
8181
case constants.LINE_STRIP:
8282
this.immediateMode.shapeMode = constants.TRIANGLE_FAN;

0 commit comments

Comments
 (0)