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:14:47 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-31 16:14:47 +0300
commit1804eb57fd27fceb0ed113e3ef2f4a55db0d03c8 (patch)
tree003ceca6cdb280e5f6fc408b6833dea8b36f2bd6 /source/blender/gpu/opengl/gl_context.cc
parent1b3a0ae2316063d9817210a8fe5fd4588cee47cf (diff)
GPUImmediate: GL backend isolation
This is part of the Vulkan backend task T68990. This is mostly a cleanup, however, there is a small change: We don't use a special Vertex Array binding function for Immediate anymore and just reuse the one for batches. This might create a bit more state changes but this could be fixed easily if it causes perf regression. # Conflicts: # source/blender/gpu/intern/gpu_context.cc
Diffstat (limited to 'source/blender/gpu/opengl/gl_context.cc')
-rw-r--r--source/blender/gpu/opengl/gl_context.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_context.cc b/source/blender/gpu/opengl/gl_context.cc
index 6bfbac72301..e5373777894 100644
--- a/source/blender/gpu/opengl/gl_context.cc
+++ b/source/blender/gpu/opengl/gl_context.cc
@@ -31,6 +31,7 @@
#include "gpu_context_private.hh"
+#include "gl_immediate.hh"
#include "gl_state.hh"
#include "gl_backend.hh" /* TODO remove */
@@ -55,6 +56,7 @@ GLContext::GLContext(void *ghost_window, GLSharedOrphanLists &shared_orphan_list
glBindBuffer(GL_ARRAY_BUFFER, 0);
state_manager = new GLStateManager();
+ imm = new GLImmediate();
ghost_window_ = ghost_window;
if (ghost_window) {