diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-08-16 21:56:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-08-18 22:30:10 +0300 |
commit | f30df15edc0b5bfce98809cfa8c2ca96cfe03e97 (patch) | |
tree | 3b5fb309ed8a39e64a576cc6631d2866ca5318ac /source/blender/gpu/intern/gpu_context_private.hh | |
parent | 298329554a5a0ae40bc4a64ca9c1490d22edc947 (diff) |
GPUState: Make use of GPUStateStack class
This isolate most GL calls to the GL backend. Still a few remains.
Diffstat (limited to 'source/blender/gpu/intern/gpu_context_private.hh')
-rw-r--r-- | source/blender/gpu/intern/gpu_context_private.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_context_private.hh b/source/blender/gpu/intern/gpu_context_private.hh index 3f9fca16ff7..04785187e8b 100644 --- a/source/blender/gpu/intern/gpu_context_private.hh +++ b/source/blender/gpu/intern/gpu_context_private.hh @@ -29,6 +29,8 @@ #include "GPU_context.h" +#include "gpu_state_private.hh" + #include <mutex> #include <pthread.h> #include <string.h> @@ -44,6 +46,7 @@ struct GPUContext { GPUShader *shader = NULL; GPUFrameBuffer *current_fbo = NULL; GPUMatrixState *matrix_state = NULL; + blender::gpu::GPUStateStack *state_stack = NULL; protected: /** Thread on which this context is active. */ |