mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Removed bad check for clear flags.
This commit is contained in:
parent
37ec544040
commit
468b48b017
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue