Change shader.reserve() to shader.resize()
This commit is contained in:
parent
d8176fd55a
commit
1e0f034259
@ -205,7 +205,7 @@ HLSLCC_API int HLSLCC_APIENTRY TranslateHLSLFromFile(const char* filename,
|
||||
length = ftell(shaderFile);
|
||||
fseek(shaderFile, 0, SEEK_SET);
|
||||
|
||||
shader.reserve(length + 1);
|
||||
shader.resize(length + 1);
|
||||
|
||||
readLength = fread(&shader[0], 1, length, shaderFile);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user