Skip to content

Commit

Permalink
minor indentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav-1306 committed Oct 15, 2023
1 parent 34461f4 commit 4775dec
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/webgl/p5.RendererGL.Immediate.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,9 @@ p5.RendererGL.prototype.vertex = function(x, y) {
lineVertexColor[3]
);

if (
this.textureMode === constants.IMAGE &&
!this.isProcessingVertices
) {
if (this._tex !== null ) {
if (this._tex.width > 0 && this._tex.height > 0 ) {
if (this.textureMode === constants.IMAGE && !this.isProcessingVertices) {
if (this._tex !== null) {
if (this._tex.width > 0 && this._tex.height > 0) {
u /= this._tex.width;
v /= this._tex.height;
}
Expand Down

0 comments on commit 4775dec

Please sign in to comment.