diff options
author | David Tardon <dtardon@redhat.com> | 2016-11-10 10:11:46 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-11-10 10:24:08 +0100 |
commit | 7983c946229d580ec825edbde765381035ae02f6 (patch) | |
tree | 4cc43916c0e250754ee1b7efdadd1fa8b9f78153 /vcl | |
parent | e2b62889c82d0a3295c9be0315fadb5bba504c99 (diff) |
start with a defined state
Change-Id: I7e77fcf2d120845b436b7d6220025fd5b339aafa
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/opengl/RenderState.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/inc/opengl/RenderState.hxx b/vcl/inc/opengl/RenderState.hxx index f84dba70fea9..1f526ba4c603 100644 --- a/vcl/inc/opengl/RenderState.hxx +++ b/vcl/inc/opengl/RenderState.hxx @@ -19,6 +19,13 @@ class GenericCapabilityState protected: bool mbTest; + GenericCapabilityState() + : mbTest(readState()) + { + if (mbTest) + disable(); + } + static bool readState() { return glIsEnabled(ENUM_TYPE); |