Skip to content

Commit

Permalink
refactor(shader-ast-glsl): update break/continue/discard handling
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 30, 2019
1 parent 663e992 commit 0b86e89
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/shader-ast-glsl/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const targetGLSL = (opts?: Partial<GLSLOpts>) => {

assign: (t) => emit(t.l) + " = " + emit(t.r),

break: () => "break",
ctrl: (t) => t.id,

call: $fn,

Expand All @@ -127,8 +127,6 @@ export const targetGLSL = (opts?: Partial<GLSLOpts>) => {
)})`
: $fn(t),

cont: () => "continue",

decl: (t) => $decl(t.id),

fn: (t) =>
Expand Down

0 comments on commit 0b86e89

Please sign in to comment.