Currently, in GL.render_mesh() in the file GL/drawing.jl, we always call glEnable(GL_PRIMITIVE_RESTART) and glDisable(GL_PRIMITIVE_RESTART). However, we should cache its current state in the context and only make those two calls when it's actually necessary.
Don't forget to also load the cached value when the context refreshes!
Currently, in
GL.render_mesh()
in the file GL/drawing.jl, we always callglEnable(GL_PRIMITIVE_RESTART)
andglDisable(GL_PRIMITIVE_RESTART)
. However, we should cache its current state in the context and only make those two calls when it's actually necessary.Don't forget to also load the cached value when the context refreshes!