Removed bad check for clear flags.

This commit is contained in:
bkaradzic 2013-04-30 23:10:29 -07:00
parent 37ec544040
commit 468b48b017
2 changed files with 1 additions and 2 deletions

View file

@ -7,6 +7,7 @@
#define __DBG_H__ #define __DBG_H__
#include <stdarg.h> // va_list #include <stdarg.h> // va_list
#include <stdint.h>
#define DBG_STRINGIZE(_x) DBG_STRINGIZE_(_x) #define DBG_STRINGIZE(_x) DBG_STRINGIZE_(_x)
#define DBG_STRINGIZE_(_x) #_x #define DBG_STRINGIZE_(_x) #_x

View file

@ -1271,14 +1271,12 @@ namespace bgfx
void setViewClear(uint8_t _id, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil) void setViewClear(uint8_t _id, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil)
{ {
BGFX_CHECK_MAIN_THREAD(); 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); s_ctx.setViewClear(_id, _flags, _rgba, _depth, _stencil);
} }
void setViewClearMask(uint32_t _viewMask, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil) void setViewClearMask(uint32_t _viewMask, uint8_t _flags, uint32_t _rgba, float _depth, uint8_t _stencil)
{ {
BGFX_CHECK_MAIN_THREAD(); 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); s_ctx.setViewClearMask(_viewMask, _flags, _rgba, _depth, _stencil);
} }