diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-10 12:41:22 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-13 15:20:24 +0300 |
commit | 47bfb0f7ad2f70017585fe55a68e49ae09f1150c (patch) | |
tree | 3840e9e93bb3a1cc18735b512356fd4ec86108c8 /source/blender/gpu/opengl/gl_backend.hh | |
parent | 9443da6166f58403eab07c7bff9eac55af04f981 (diff) |
GPUBatch: Move allocator to backend
Diffstat (limited to 'source/blender/gpu/opengl/gl_backend.hh')
-rw-r--r-- | source/blender/gpu/opengl/gl_backend.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/opengl/gl_backend.hh b/source/blender/gpu/opengl/gl_backend.hh index a1e0e53f329..eba275f0245 100644 --- a/source/blender/gpu/opengl/gl_backend.hh +++ b/source/blender/gpu/opengl/gl_backend.hh @@ -27,6 +27,7 @@ #include "BLI_vector.hh" +#include "gl_batch.hh" #include "gl_context.hh" #include "gl_drawlist.hh" @@ -43,6 +44,11 @@ class GLBackend : public GPUBackend { return new GLContext(ghost_window, shared_orphan_list_); }; + Batch *batch_alloc(void) + { + return new GLBatch(); + }; + DrawList *drawlist_alloc(int list_length) { return new GLDrawList(list_length); |