Skip to content

Commit b242dd6

Browse files
committed
if turn on glVertexAttribDivisor, must turn it off after draw
1 parent 44c492a commit b242dd6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • lib/PDL/Graphics/TriD

lib/PDL/Graphics/TriD/GL.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,7 @@ sub gdraw {
495495
$this->togl_bind;
496496
glVertexAttribDivisor($this->{Impl}{offset_loc}, 1);
497497
glDrawElementsInstancedARB_c(GL_TRIANGLE_STRIP, $this->{Impl}{idx}->dim(0), GL_UNSIGNED_INT, 0, $this->{Impl}{noffset});
498+
glVertexAttribDivisor($this->{Impl}{offset_loc}, 0);
498499
$this->togl_unbind;
499500
}
500501
}

0 commit comments

Comments
 (0)