Fix compilation errors on Visual Studio
This commit is contained in:
parent
eeb9e1009b
commit
a928c73827
|
@ -92,4 +92,4 @@ SET(SCENES_SOURCES
|
||||||
ADD_EXECUTABLE(testbed ${TESTBED_SOURCES} ${SCENES_SOURCES} ${COMMON_SOURCES} ${IMGUI_SOURCES})
|
ADD_EXECUTABLE(testbed ${TESTBED_SOURCES} ${SCENES_SOURCES} ${COMMON_SOURCES} ${IMGUI_SOURCES})
|
||||||
|
|
||||||
# Link with libraries
|
# Link with libraries
|
||||||
TARGET_LINK_LIBRARIES(testbed reactphysics3d openglframework glfw ${GLFW_LIBRARIES})
|
TARGET_LINK_LIBRARIES(testbed reactphysics3d openglframework glfw ${GLEW_LIBRARIES} ${GLFW_LIBRARIES})
|
||||||
|
|
|
@ -238,7 +238,7 @@ void Capsule::createVBOAndVAO() {
|
||||||
// Create th VBO for the indices data
|
// Create th VBO for the indices data
|
||||||
mVBOIndices.create();
|
mVBOIndices.create();
|
||||||
mVBOIndices.bind();
|
mVBOIndices.bind();
|
||||||
size_t sizeIndices = mIndices[0].size() * sizeof(uint);
|
size_t sizeIndices = mIndices[0].size() * sizeof(unsigned int);
|
||||||
mVBOIndices.copyDataIntoVBO(sizeIndices, getIndicesPointer(), GL_STATIC_DRAW);
|
mVBOIndices.copyDataIntoVBO(sizeIndices, getIndicesPointer(), GL_STATIC_DRAW);
|
||||||
mVBOIndices.unbind();
|
mVBOIndices.unbind();
|
||||||
|
|
||||||
|
|
|
@ -236,7 +236,7 @@ void Sphere::createVBOAndVAO() {
|
||||||
// Create th VBO for the indices data
|
// Create th VBO for the indices data
|
||||||
mVBOIndices.create();
|
mVBOIndices.create();
|
||||||
mVBOIndices.bind();
|
mVBOIndices.bind();
|
||||||
size_t sizeIndices = mIndices[0].size() * sizeof(uint);
|
size_t sizeIndices = mIndices[0].size() * sizeof(unsigned int);
|
||||||
mVBOIndices.copyDataIntoVBO(sizeIndices, getIndicesPointer(), GL_STATIC_DRAW);
|
mVBOIndices.copyDataIntoVBO(sizeIndices, getIndicesPointer(), GL_STATIC_DRAW);
|
||||||
mVBOIndices.unbind();
|
mVBOIndices.unbind();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user