diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-05-01 19:46:34 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-05-01 19:46:34 +0100 |
commit | 830c0be51d2a81e660cbc03ddfe6d79631ea258b (patch) | |
tree | 2f0174148a1829ca5f41bf542fbe1a64a4421e42 /wrappers | |
parent | fbfe7a6f38498c2dd18bf7b896c84171198dc7e9 (diff) |
gltrace: Use static initializers in gltrace::Context.
Diffstat (limited to 'wrappers')
-rw-r--r-- | wrappers/gltrace.hpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/wrappers/gltrace.hpp b/wrappers/gltrace.hpp index 09aa71b8..375aa834 100644 --- a/wrappers/gltrace.hpp +++ b/wrappers/gltrace.hpp @@ -89,24 +89,19 @@ public: glfeatures::Extensions extensions; glfeatures::Features features; - bool user_arrays; - bool user_arrays_nv; - bool userArraysOnBegin; - unsigned retain_count; + bool user_arrays = false; + bool user_arrays_nv = false; + bool userArraysOnBegin = false; + unsigned retain_count = 0; // Whether it has been bound before - bool bound; + bool bound = false; // TODO: This will fail for buffers shared by multiple contexts. std::map <GLuint, Buffer> buffers; Context(void) : - profile(glfeatures::API_GL, 1, 0), - user_arrays(false), - user_arrays_nv(false), - userArraysOnBegin(false), - retain_count(0), - bound(false) + profile(glfeatures::API_GL, 1, 0) { } inline bool |