The warning is: cast to pointer from integer of different size. This happens when I compile for x86_64, arm64-v8a, and mips64 device types
In short I have a class called DefaultShaderProgram that has a method that looks like this:
void DefaultShaderProgram::EnableAttributes()
{
attributes["vertexPosition"].Enable(TOTAL_ATTRIBUTES_BYTE_SIZE, 0);
//Compiler says byteSize is where the warning is coming from: cast to pointer from integer of different size
attributes["color"].Enable(TOTAL_ATTRIBUTES_BYTE_SIZE, (const GLvoid*)attributes["vertexPosition"].byteSize);
}
This call (the Enable method) is just a wrapper for glVertexAttribPointer. Where the Enable function is apart of the base class ShaderProgram and looks like:void ShaderProgram::ShaderAttribute::Enable(const GLsizei byteStride, const GLvoid *byteOffset)
{
glEnableVertexAttribArray(location);
glVertexAttribPointer(location, typeSize, baseType, normalized, byteStride, byteOffset);
}
Whats the proper way to fix this? I don't think its one of those warnings that I can ignore