Kaydet (Commit) 7983c946 authored tarafından David Tardon's avatar David Tardon

start with a defined state

Change-Id: I7e77fcf2d120845b436b7d6220025fd5b339aafa
üst e2b62889
...@@ -19,6 +19,13 @@ class GenericCapabilityState ...@@ -19,6 +19,13 @@ class GenericCapabilityState
protected: protected:
bool mbTest; bool mbTest;
GenericCapabilityState()
: mbTest(readState())
{
if (mbTest)
disable();
}
static bool readState() static bool readState()
{ {
return glIsEnabled(ENUM_TYPE); return glIsEnabled(ENUM_TYPE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment