This commit is contained in:
wheremyfoodat 2022-09-24 02:45:57 +03:00
commit be4fae5104
33 changed files with 341 additions and 70 deletions

View file

@ -57,7 +57,7 @@ namespace OpenGL {
void bind() { glBindVertexArray(m_handle); }
template <typename T>
void setAttributeFloat(GLuint index, GLint size, GLsizei stride, const void* offset, bool normalized = false) {
void setAttributeFloat(GLuint index, GLint size, GLsizei stride, const void* offset, bool normalized = GL_FALSE) {
if constexpr (std::is_same<T, GLfloat>()) {
glVertexAttribPointer(index, size, GL_FLOAT, normalized, stride, offset);
}