From e06edc67c049c65c3952a8447e22717a0f492020 Mon Sep 17 00:00:00 2001 From: eska Date: Tue, 31 Jan 2017 03:46:30 +0100 Subject: Enable WebGL2 in web export, start fixing build Will not yet compile --- core/class_db.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/class_db.cpp') diff --git a/core/class_db.cpp b/core/class_db.cpp index bb3368c128..2a3a12b127 100644 --- a/core/class_db.cpp +++ b/core/class_db.cpp @@ -33,6 +33,7 @@ #ifdef NO_THREADS #define OBJTYPE_RLOCK +#define OBJTYPE_WLOCK #else @@ -776,11 +777,15 @@ void ClassDB::add_property(StringName p_class,const PropertyInfo& p_pinfo, const +#ifndef NO_THREADS lock->read_lock(); +#endif ClassInfo *type=classes.getptr(p_class); +#ifndef NO_THREADS lock->read_unlock(); +#endif ERR_FAIL_COND(!type); -- cgit v1.2.3