From 1e0f034259f95343f854431866319773183df797 Mon Sep 17 00:00:00 2001 From: vinjn Date: Tue, 22 Nov 2016 16:16:32 +0800 Subject: [PATCH] Change shader.reserve() to shader.resize() --- src/HLSLcc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HLSLcc.cpp b/src/HLSLcc.cpp index 2443a93..9aa0bbf 100644 --- a/src/HLSLcc.cpp +++ b/src/HLSLcc.cpp @@ -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);