diff --git a/_sokol_gfx_gl.impl.h b/_sokol_gfx_gl.impl.h
index 4c2882fc3..127ab9120 100644
--- a/_sokol_gfx_gl.impl.h
+++ b/_sokol_gfx_gl.impl.h
@@ -2113,6 +2113,11 @@ _SOKOL_PRIVATE void _sg_update_image(_sg_image* img, const sg_image_content* dat
 }
 
 _SOKOL_PRIVATE void _sg_reset_state_cache() {
+    #if !defined(SOKOL_GLES2)
+    if (!_sg_gl_gles2) {
+        glBindVertexArray(_sg_gl.vao);
+    }
+    #endif
     _sg_gl_reset_state_cache(&_sg_gl.cache);
 }