Fix vertex array leak in Cycles viewport drawing.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 26 Mar 2019 16:26:57 +0000 (17:26 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Tue, 26 Mar 2019 18:56:43 +0000 (19:56 +0100)
intern/cycles/device/device.cpp

index 9dce7aa65dff131718e61303b0165912f7997802..e74637472efacf75d0c0f90fc8b6b4af8275445c 100644 (file)
@@ -349,6 +349,7 @@ void Device::draw_pixels(
                draw_params.unbind_display_space_shader_cb();
        }
 
+       glDeleteVertexArrays(1, &vertex_array_object);
        glBindTexture(GL_TEXTURE_2D, 0);
        glDeleteTextures(1, &texid);