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
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2020-08-31 16:09:15 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-31 16:15:04 +0300
commita1df2fc44388a92ba539f764203170902dd2a663 (patch)
tree7e7c4f6467a024fb1abd0643f79ec6ec70a37822 /source/blender/gpu/opengl/gl_drawlist.cc
parent1804eb57fd27fceb0ed113e3ef2f4a55db0d03c8 (diff)
Cleanup: GPU: Remove unused attr_binding and primitive code
Diffstat (limited to 'source/blender/gpu/opengl/gl_drawlist.cc')
-rw-r--r--source/blender/gpu/opengl/gl_drawlist.cc4
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 16ea924d8dc..35fecc859b8 100644
--- a/source/blender/gpu/opengl/gl_drawlist.cc
+++ b/source/blender/gpu/opengl/gl_drawlist.cc
@@ -33,10 +33,10 @@
#include "gpu_context_private.hh"
#include "gpu_drawlist_private.hh"
-#include "gpu_primitive_private.h"
#include "gl_backend.hh"
#include "gl_drawlist.hh"
+#include "gl_primitive.hh"
#include <limits.h>
@@ -199,7 +199,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 = to_gl(batch_->prim_type);
void *offset = (void *)data_offset_;
glBindBuffer(GL_DRAW_INDIRECT_BUFFER, buffer_id_);