Jelajahi Sumber

Removed bad check for clear flags.

bkaradzic 12 tahun lalu
induk
melakukan
468b48b017
2 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 0
      examples/common/dbg.h
  2. 0 2
      src/bgfx.cpp

+ 1 - 0
examples/common/dbg.h

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

+ 0 - 2
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);
 	}