Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
typo in string
  • Loading branch information
lukeplowden committed Jun 16, 2025
commit f120ad95d83ed0bc007af275264e39a4caba7c14
7 changes: 0 additions & 7 deletions src/webgl/p5.RendererGL.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,7 @@ 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 @@ -296,10 +292,7 @@ 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
2 changes: 1 addition & 1 deletion src/webgpu/p5.RendererWebGPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ class RendererWebGPU extends Renderer3D {
new RegExp(`struct\\s+${structName}\\s*\\{([^\\}]+)\\}`)
);
if (!structMatch) {
throw new Error(`Can't find a struct defnition for ${structName}`);
throw new Error(`Can't find a struct definition for ${structName}`);
}

const structBody = structMatch[1];
Expand Down