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/intern/gpu_batch.cc
parent1804eb57fd27fceb0ed113e3ef2f4a55db0d03c8 (diff)
Cleanup: GPU: Remove unused attr_binding and primitive code
Diffstat (limited to 'source/blender/gpu/intern/gpu_batch.cc')
-rw-r--r--source/blender/gpu/intern/gpu_batch.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/gpu/intern/gpu_batch.cc b/source/blender/gpu/intern/gpu_batch.cc
index 36f60c3dcc8..c3554d9abc8 100644
--- a/source/blender/gpu/intern/gpu_batch.cc
+++ b/source/blender/gpu/intern/gpu_batch.cc
@@ -38,10 +38,11 @@
#include "gpu_backend.hh"
#include "gpu_batch_private.hh"
#include "gpu_context_private.hh"
-#include "gpu_primitive_private.h"
#include "gpu_shader_private.hh"
#include "gpu_vertex_format_private.h"
+#include "gl_primitive.hh" /* TODO remove */
+
#include <limits.h>
#include <stdlib.h>
#include <string.h>
@@ -287,7 +288,7 @@ void GPU_draw_primitive(GPUPrimType prim_type, int v_count)
/* we cannot draw without vao ... annoying ... */
glBindVertexArray(GPU_vao_default());
- GLenum type = convert_prim_type_to_gl(prim_type);
+ GLenum type = blender::gpu::to_gl(prim_type);
glDrawArrays(type, 0, v_count);
/* Performance hog if you are drawing with the same vao multiple time.