[Libreoffice-commits] core.git: vcl/inc
David Tardon
dtardon at redhat.com
Thu Nov 10 09:24:38 UTC 2016
vcl/inc/opengl/RenderState.hxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 7983c946229d580ec825edbde765381035ae02f6
Author: David Tardon <dtardon at redhat.com>
Date: Thu Nov 10 10:11:46 2016 +0100
start with a defined state
Change-Id: I7e77fcf2d120845b436b7d6220025fd5b339aafa
diff --git a/vcl/inc/opengl/RenderState.hxx b/vcl/inc/opengl/RenderState.hxx
index f84dba7..1f526ba 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);
More information about the Libreoffice-commits
mailing list