summaryrefslogtreecommitdiffstats
path: root/core/safe_refcount.cpp
diff options
context:
space:
mode:
authoreska <eska@eska.me>2017-01-31 03:46:30 +0100
committereska <eska@eska.me>2017-02-01 10:21:04 +0100
commite06edc67c049c65c3952a8447e22717a0f492020 (patch)
treeca08d23b54fbb40fb609b44a58395eb72b3203fb /core/safe_refcount.cpp
parent7b059965e8df745c5b45b4ec6bfbdfe1a7397642 (diff)
downloadredot-engine-e06edc67c049c65c3952a8447e22717a0f492020.tar.gz
Enable WebGL2 in web export, start fixing build
Will not yet compile
Diffstat (limited to 'core/safe_refcount.cpp')
-rw-r--r--core/safe_refcount.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/safe_refcount.cpp b/core/safe_refcount.cpp
index ede37bbe8a..50617f2062 100644
--- a/core/safe_refcount.cpp
+++ b/core/safe_refcount.cpp
@@ -44,6 +44,14 @@ uint32_t atomic_conditional_increment( register uint32_t * pw ) {
return *pw;
}
+uint32_t atomic_increment( register uint32_t * pw ) {
+
+ (*pw)++;
+
+ return *pw;
+
+}
+
uint32_t atomic_decrement( register uint32_t * pw ) {
(*pw)--;