Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-04-30 05:31:52 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-30 05:31:52 +0300
commitcaf1643f4a779cb13523843252fde930e615e865 (patch)
tree6370491c0467ed0e4b2060cb7b8a16fd7318b74f /source
parentc195c061d59b59283077328bdf0931d45fef76d0 (diff)
Fix uninitialized memory use in GLDrawList
GLDrawList::init() used MDI_INDEXED which checks base_index_.
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/opengl/gl_drawlist.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.cc b/source/blender/gpu/opengl/gl_drawlist.cc
index d3401036154..50ab5574cd2 100644
--- a/source/blender/gpu/opengl/gl_drawlist.cc
+++ b/source/blender/gpu/opengl/gl_drawlist.cc
@@ -68,6 +68,7 @@ GLDrawList::GLDrawList(int length)
batch_ = nullptr;
buffer_id_ = 0;
command_len_ = 0;
+ base_index_ = 0;
command_offset_ = 0;
data_size_ = 0;
data_ = nullptr;