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-16 21:56:39 +0300
committerClément Foucault <foucault.clem@gmail.com>2020-08-18 22:30:10 +0300
commitf30df15edc0b5bfce98809cfa8c2ca96cfe03e97 (patch)
tree3b5fb309ed8a39e64a576cc6631d2866ca5318ac /source/blender/gpu/intern/gpu_state_private.hh
parent298329554a5a0ae40bc4a64ca9c1490d22edc947 (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_state_private.hh')
-rw-r--r--source/blender/gpu/intern/gpu_state_private.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state_private.hh b/source/blender/gpu/intern/gpu_state_private.hh
index 0ac538d117c..31840724ec0 100644
--- a/source/blender/gpu/intern/gpu_state_private.hh
+++ b/source/blender/gpu/intern/gpu_state_private.hh
@@ -137,6 +137,8 @@ class GPUStateStack {
int mutable_stack_top = 0;
public:
+ virtual ~GPUStateStack(){};
+
virtual void set_state(GPUState &state) = 0;
virtual void set_mutable_state(GPUStateMutable &state) = 0;