vcl/inc/opengl/RenderState.hxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 7983c946229d580ec825edbde765381035ae02f6 Author: David Tardon <dtar...@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); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits