OPENGL: Fix Integer to Pointer Cast GCC Compiler Warning

This is emitted when -Wint-to-pointer-cast is passed to GCC.
This commit is contained in:
D G Turner 2022-06-30 01:04:59 +01:00
parent 6b202b4fd2
commit 8ee4251f41

View File

@ -363,7 +363,7 @@ void Shader::enableVertexAttribute(const char *attrib, GLuint vbo, GLint size, G
va._type = type;
va._normalized = normalized;
va._stride = stride;
va._pointer = (const void *)offset;
va._pointer = (const void *)(long)offset;
}
void Shader::disableVertexAttribute(const char *attrib, int size, const float *data) {