mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-10-24 18:00:54 +00:00
Updated spirv-tools.
This commit is contained in:
7
3rdparty/spirv-tools/source/binary.cpp
vendored
7
3rdparty/spirv-tools/source/binary.cpp
vendored
@@ -781,9 +781,10 @@ spv_result_t spvBinaryParse(const spv_const_context context, void* user_data,
|
||||
// TODO(dneto): This probably belongs in text.cpp since that's the only place
|
||||
// that a spv_binary_t value is created.
|
||||
void spvBinaryDestroy(spv_binary binary) {
|
||||
if (!binary) return;
|
||||
delete[] binary->code;
|
||||
delete binary;
|
||||
if (binary) {
|
||||
if (binary->code) delete[] binary->code;
|
||||
delete binary;
|
||||
}
|
||||
}
|
||||
|
||||
size_t spv_strnlen_s(const char* str, size_t strsz) {
|
||||
|
||||
Reference in New Issue
Block a user