TransientTetra / proc_gen_opengl

Procedural generation of 3D terrain in OpenGL
0 stars 0 forks source link

Resolve warning in vaos #52

Open TransientTetra opened 4 years ago

TransientTetra commented 4 years ago

/home/mkj/Projects/proc_gen_opengl/src/view/opengl_interfacing/light_vao.cpp: In member function ‘void LightVAO::setVertexAttributePointers(unsigned int, unsigned int, int, int)’: /home/mkj/Projects/proc_gen_opengl/src/view/opengl_interfacing/light_vao.cpp:28:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 28 | glVertexAttribPointer(index, size, GL_FLOAT, GL_FALSE, stride, (void *)offset); | ^~~~~~