This commit is contained in:
Бранимир Караџић 2022-12-28 10:26:39 -08:00
parent 877cdb8b1f
commit 5f435ea56b
1 changed files with 2 additions and 2 deletions

View File

@ -563,9 +563,9 @@ namespace bgfx { namespace hlsl
return false;
}
char profileAndType[100] = {0};
char profileAndType[8] = {};
profileAndType[0] = (_options.shaderType == 'f') ? 'p' : _options.shaderType;
bx::strCat(profileAndType, 100, profile);
bx::strCat(profileAndType, BX_COUNTOF(profileAndType), profile);
s_compiler = load();