diff options
Diffstat (limited to '3rdparty/bgfx/src/shader_dx9bc.cpp')
-rw-r--r-- | 3rdparty/bgfx/src/shader_dx9bc.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/3rdparty/bgfx/src/shader_dx9bc.cpp b/3rdparty/bgfx/src/shader_dx9bc.cpp index 988bec096f0..adf83328345 100644 --- a/3rdparty/bgfx/src/shader_dx9bc.cpp +++ b/3rdparty/bgfx/src/shader_dx9bc.cpp @@ -1,6 +1,6 @@ /* - * Copyright 2011-2018 Branimir Karadzic. All rights reserved. - * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause + * Copyright 2011-2022 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bgfx/blob/master/LICENSE */ #include "bgfx_p.h" @@ -225,7 +225,7 @@ namespace bgfx const char* getName(Dx9bcOpcode::Enum _opcode) { - BX_CHECK(_opcode < Dx9bcOpcode::Count, "Unknown opcode id %d (%x).", _opcode, _opcode); + BX_ASSERT(_opcode < Dx9bcOpcode::Count, "Unknown opcode id %d (%x).", _opcode, _opcode); return s_dx9bcOpcode[_opcode]; } @@ -458,7 +458,7 @@ namespace bgfx break; default: - BX_CHECK(false, "Instruction %s with invalid number of operands %d (numValues %d)." + BX_ASSERT(false, "Instruction %s with invalid number of operands %d (numValues %d)." , getName(_instruction.opcode) , _instruction.numOperands , info.numValues @@ -492,7 +492,7 @@ namespace bgfx break; } - return 0; + return size; } int32_t toString(char* _out, int32_t _size, const Dx9bcInstruction& _instruction) @@ -642,7 +642,7 @@ namespace bgfx char temp[512]; toString(temp, 512, instruction); - BX_CHECK(length/4 == instruction.length + BX_ASSERT(length/4 == instruction.length , "%s\nread %d, expected %d" , temp , length/4 @@ -712,7 +712,7 @@ namespace bgfx { Dx9bcInstruction instruction; uint32_t size = read(&reader, instruction, _err); - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); + BX_ASSERT(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); bool cont = _fn(token * sizeof(uint32_t), instruction, _userData); if (!cont) @@ -737,7 +737,7 @@ namespace bgfx { Dx9bcInstruction instruction; uint32_t size = read(&reader, instruction, _err); - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); + BX_ASSERT(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); _fn(instruction, _userData); |