Back out clearly inconsequential/useless .reserve() calls

This commit is contained in:
Henrik Rydgård committed 2023-12-29 08:27:56 +01:00
1 parent c97d5ef23f
commit 126d88ecfc
25 files changed
+14 -61

No files matched your search

-1
View File
@@ -103,7 +103,6 @@ void DrawEngineGLES::InitDeviceObjects() {
int stride = sizeof(TransformedVertex);
std::vector<GLRInputLayout::Entry> entries;
entries.reserve(5);
entries.push_back({ ATTR_POSITION, 4, GL_FLOAT, GL_FALSE, offsetof(TransformedVertex, x) });
entries.push_back({ ATTR_TEXCOORD, 3, GL_FLOAT, GL_FALSE, offsetof(TransformedVertex, u) });
entries.push_back({ ATTR_COLOR0, 4, GL_UNSIGNED_BYTE, GL_TRUE, offsetof(TransformedVertex, color0) });