Skip to content

Commit

Permalink
Merge pull request regl-project#592 from fuzhenn/patch-4
Browse files Browse the repository at this point in the history
reset Vao after draw call
  • Loading branch information
mikolalysenko authored Feb 24, 2021
2 parents 2ba379e + d517820 commit 399197e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3189,6 +3189,9 @@ module.exports = function reglCore (
if (Object.keys(args.state).length > 0) {
draw(env.shared.current, '.dirty=true;')
}
if (env.shared.vao) {
draw(env.shared.vao, '.setVAO(null);')
}
}

// ===================================================
Expand Down Expand Up @@ -3387,6 +3390,10 @@ module.exports = function reglCore (
if (Object.keys(args.state).length > 0) {
batch(env.shared.current, '.dirty=true;')
}

if (env.shared.vao) {
batch(env.shared.vao, '.setVAO(null);')
}
}

// ===================================================
Expand Down

0 comments on commit 399197e

Please sign in to comment.