Fix use of uninitialized GPU context memory in release builds.

Reported by valgrind, not sure it caused any real bugs.
This commit is contained in:
Brecht Van Lommel
2019-01-10 20:03:05 +01:00
parent b207f4e4a2
commit 4b0c2152db

View File

@@ -80,12 +80,14 @@ struct GPUContext {
#if TRUST_NO_ONE
pthread_t thread; /* Thread on which this context is active. */
bool thread_is_used;
#endif
GPUContext() {
#if TRUST_NO_ONE
thread_is_used = false;
#endif
current_fbo = 0;
}
#endif
};
#if defined(_MSC_VER) && (_MSC_VER == 1800)