Change shader.reserve() to shader.resize()

This commit is contained in:
vinjn 2016-11-22 16:16:32 +08:00
parent d8176fd55a
commit 1e0f034259

View File

@ -205,7 +205,7 @@ HLSLCC_API int HLSLCC_APIENTRY TranslateHLSLFromFile(const char* filename,
length = ftell(shaderFile); length = ftell(shaderFile);
fseek(shaderFile, 0, SEEK_SET); fseek(shaderFile, 0, SEEK_SET);
shader.reserve(length + 1); shader.resize(length + 1);
readLength = fread(&shader[0], 1, length, shaderFile); readLength = fread(&shader[0], 1, length, shaderFile);