diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-09 00:37:43 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-13 15:20:23 +0300 |
commit | 186abf7d3bab9ed8b905c6914de02427bb2547cf (patch) | |
tree | 0f442dec935f30192eaf50300fb65d5553f6d718 /source/blender/gpu/opengl/gl_drawlist.cc | |
parent | 38ef35b1ed1d38ab58c7d7fb121f4f3b33869810 (diff) |
GPUBatch: Remove usage of gl_prim_type outside of GPU module
Diffstat (limited to 'source/blender/gpu/opengl/gl_drawlist.cc')
-rw-r--r-- | source/blender/gpu/opengl/gl_drawlist.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/opengl/gl_drawlist.cc b/source/blender/gpu/opengl/gl_drawlist.cc index 3fc6985e582..f24bfdc8751 100644 --- a/source/blender/gpu/opengl/gl_drawlist.cc +++ b/source/blender/gpu/opengl/gl_drawlist.cc @@ -33,6 +33,7 @@ #include "gpu_context_private.hh" #include "gpu_drawlist_private.hh" +#include "gpu_primitive_private.h" #include "gl_backend.hh" #include "gl_drawlist.hh" @@ -193,8 +194,7 @@ void GLDrawList::submit(void) * case where only a few instances are needed to finish filling a call buffer. */ const bool is_finishing_a_buffer = (command_offset_ >= data_size_); if (command_len_ > 2 || is_finishing_a_buffer) { - // GLenum prim = convert_prim_type_to_gl(batch_->prim_type); - GLenum prim = batch_->gl_prim_type; + GLenum prim = convert_prim_type_to_gl(batch_->prim_type); void *offset = (void *)data_offset_; glBindBuffer(GL_DRAW_INDIRECT_BUFFER, buffer_id_); |