diff --git a/src/mbgl/gl/drawable_gl.cpp b/src/mbgl/gl/drawable_gl.cpp index 70ad47a91c2..543196fcdf9 100644 --- a/src/mbgl/gl/drawable_gl.cpp +++ b/src/mbgl/gl/drawable_gl.cpp @@ -71,10 +71,10 @@ void DrawableGL::draw(PaintParameters& parameters) const { context.draw(glSeg.getMode(), mlSeg.indexOffset, mlSeg.indexLength); } } - -#ifndef NDEBUG + // Unbind the VAO so that future buffer commands outside Drawable do not change the current VAO state context.bindVertexArray = value::BindVertexArray::Default; +#ifndef NDEBUG unbindTextures(); unbindUniformBuffers(); #endif