From cd2a8b7a3069ae340478c433a95d1de5af5e227a Mon Sep 17 00:00:00 2001 From: "Michael H. Gimle" Date: Thu, 13 Feb 2020 15:48:38 +0100 Subject: [PATCH] float -> T Because T is delicious and healthy --- src/utilities/glutils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utilities/glutils.cpp b/src/utilities/glutils.cpp index a6ce2f8..ba1733f 100644 --- a/src/utilities/glutils.cpp +++ b/src/utilities/glutils.cpp @@ -9,7 +9,7 @@ unsigned int generateAttribute(int id, int elementsPerEntry, std::vector data glGenBuffers(1, &bufferID); glBindBuffer(GL_ARRAY_BUFFER, bufferID); glBufferData(GL_ARRAY_BUFFER, data.size() * sizeof(T), data.data(), GL_STATIC_DRAW); - glVertexAttribPointer(id, elementsPerEntry, GL_FLOAT, normalize ? GL_TRUE : GL_FALSE, elementsPerEntry * sizeof(float), 0); + glVertexAttribPointer(id, elementsPerEntry, GL_FLOAT, normalize ? GL_TRUE : GL_FALSE, elementsPerEntry * sizeof(T), 0); glEnableVertexAttribArray(id); return bufferID; }