Skip to content

Commit 1e0f034

Browse files
committed
Change shader.reserve() to shader.resize()
1 parent d8176fd commit 1e0f034

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HLSLcc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ HLSLCC_API int HLSLCC_APIENTRY TranslateHLSLFromFile(const char* filename,
205205
length = ftell(shaderFile);
206206
fseek(shaderFile, 0, SEEK_SET);
207207

208-
shader.reserve(length + 1);
208+
shader.resize(length + 1);
209209

210210
readLength = fread(&shader[0], 1, length, shaderFile);
211211

0 commit comments

Comments
 (0)