fix uint32 for none windows env (#2309)
Co-authored-by: Cedric Guillemet <ceguille@microsoft.com>
This commit is contained in:
parent
77184d5743
commit
9e90a360e5
@ -2046,14 +2046,14 @@ namespace bgfx
|
||||
case DXBC_CHUNK_RDEF: // Resource definition.
|
||||
chunkOffset[idx] = uint32_t(bx::seek(_writer) - dxbcOffset);
|
||||
size += bx::write(_writer, DXBC_CHUNK_RDEF, _err);
|
||||
size += bx::write(_writer, UINT32(_dxbc.rdef.rdefCode.size()), _err);
|
||||
size += bx::write(_writer, uint32_t(_dxbc.rdef.rdefCode.size()), _err);
|
||||
chunkSize[idx] = bx::write(_writer, _dxbc.rdef.rdefCode.data(), _dxbc.rdef.rdefCode.size(), _err);
|
||||
size += chunkSize[idx++];
|
||||
break;
|
||||
case DXBC_CHUNK_STAT: // Statistics.
|
||||
chunkOffset[idx] = uint32_t(bx::seek(_writer) - dxbcOffset);
|
||||
size += bx::write(_writer, DXBC_CHUNK_STAT, _err);
|
||||
size += bx::write(_writer, UINT32(_dxbc.rdef.rdefCode.size()), _err);
|
||||
size += bx::write(_writer, uint32_t(_dxbc.rdef.rdefCode.size()), _err);
|
||||
chunkSize[idx] = bx::write(_writer, _dxbc.rdef.rdefCode.data(), _dxbc.rdef.rdefCode.size(), _err);
|
||||
size += chunkSize[idx++];
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user