diff --git a/examples/common/dbg.h b/examples/common/dbg.h index b4c8e6be..370cf663 100644 --- a/examples/common/dbg.h +++ b/examples/common/dbg.h @@ -7,6 +7,7 @@ #define __DBG_H__ #include // va_list +#include #define DBG_STRINGIZE(_x) DBG_STRINGIZE_(_x) #define DBG_STRINGIZE_(_x) #_x diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 0505b206..0e8a994a 100755 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -1271,14 +1271,12 @@ namespace bgfx void setViewClear(uint8_t _id, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil) { BGFX_CHECK_MAIN_THREAD(); - BX_CHECK(_flags != BGFX_CLEAR_NONE, "At least one clear bit flag must be used."); s_ctx.setViewClear(_id, _flags, _rgba, _depth, _stencil); } void setViewClearMask(uint32_t _viewMask, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil) { BGFX_CHECK_MAIN_THREAD(); - BX_CHECK(_flags != BGFX_CLEAR_NONE, "At least one clear bit flag must be used."); s_ctx.setViewClearMask(_viewMask, _flags, _rgba, _depth, _stencil); }