Skip to content
Merged
Changes from 2 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ class RendererGL extends Renderer3D {

if (!glBuffers) return;

<<<<<<< HEAD
if (this._curShader.shaderType === 'stroke') {
=======
if (this._curShader.shaderType === 'stroke'){
>>>>>>> f0875d795be9297bcdf9b312dffcafeda4741536
if (count === 1) {
gl.drawArrays(gl.TRIANGLES, 0, geometry.lineVertices.length / 3);
} else {
Expand All @@ -292,7 +296,10 @@ class RendererGL extends Renderer3D {
"🌸 p5.js says: Instancing is only supported in WebGL2 mode"
);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be missing a } here

<<<<<<< HEAD
}
=======
>>>>>>> f0875d795be9297bcdf9b312dffcafeda4741536
} else if (glBuffers.indexBuffer) {
this._bindBuffer(glBuffers.indexBuffer, gl.ELEMENT_ARRAY_BUFFER);

Expand Down
Loading