diff --git a/VERSION b/VERSION index e06c7c88..3eb14bfa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -B2-rc3-33-gdc4d1d49fa+1 \ No newline at end of file +B2-rc4-0-g969effedde+1 \ No newline at end of file diff --git a/client/renderers/EGL/texture.c b/client/renderers/EGL/texture.c index bdbfab4c..f6306c6c 100644 --- a/client/renderers/EGL/texture.c +++ b/client/renderers/EGL/texture.c @@ -319,7 +319,7 @@ bool egl_texture_update(EGL_Texture * texture, const uint8_t * buffer) const uint8_t sw = atomic_load_explicit(&texture->state.w, memory_order_acquire); - if (atomic_load_explicit(&texture->state.u, memory_order_acquire) == sw + 1) + if (atomic_load_explicit(&texture->state.u, memory_order_acquire) == (uint8_t)(sw + 1)) { egl_warn_slow(); return true; @@ -355,7 +355,7 @@ bool egl_texture_update_from_frame(EGL_Texture * texture, const FrameBuffer * fr const uint8_t sw = atomic_load_explicit(&texture->state.w, memory_order_acquire); - if (atomic_load_explicit(&texture->state.u, memory_order_acquire) == sw + 1) + if (atomic_load_explicit(&texture->state.u, memory_order_acquire) == (uint8_t)(sw + 1)) { egl_warn_slow(); return true; @@ -457,7 +457,7 @@ enum EGL_TexStatus egl_texture_bind(EGL_Texture * texture) } } - if (ss != sd && ss != sd+1) + if (ss != sd && ss != (uint8_t)(sd + 1)) sd = atomic_fetch_add_explicit(&texture->state.d, 1, memory_order_release) + 1; }