diff options
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); |