diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 19:26:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-03-26 21:56:43 +0300 |
commit | c515ea2e93b02674a6d847f1a3851194f5bb9aa2 (patch) | |
tree | f2c757a7b79c199751c3b5d3a4ebded9ba6a7f93 | |
parent | 6e3331990fa0111410e9981bd5bb1e4d1c84dd00 (diff) |
Fix vertex array leak in Cycles viewport drawing.
-rw-r--r-- | intern/cycles/device/device.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp index 9dce7aa65df..e74637472ef 100644 --- a/intern/cycles/device/device.cpp +++ b/intern/cycles/device/device.cpp @@ -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); |