Skip to content

Commit

Permalink
Turn on glScissor (#875)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfoodK authored Jun 27, 2024
1 parent 8c4616f commit f1d98cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions namui/namui-cli/webCode/src/imports/envGl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ export function envGl({
webgl.shaderSource(shader, source);
},
glScissor: () => {
throw new Error("not implemented");
// return webgl!.scissor();
if (!webgl) {
throw new Error("webgl is not set");
}
return webgl.scissor;
},
glReadPixels: () => {
throw new Error("not implemented");
Expand Down

0 comments on commit f1d98cc

Please sign in to comment.