diff --git a/testbed/CMakeLists.txt b/testbed/CMakeLists.txt index b81a6fec..fb369623 100644 --- a/testbed/CMakeLists.txt +++ b/testbed/CMakeLists.txt @@ -92,4 +92,4 @@ SET(SCENES_SOURCES ADD_EXECUTABLE(testbed ${TESTBED_SOURCES} ${SCENES_SOURCES} ${COMMON_SOURCES} ${IMGUI_SOURCES}) # Link with libraries -TARGET_LINK_LIBRARIES(testbed reactphysics3d openglframework glfw ${GLFW_LIBRARIES}) +TARGET_LINK_LIBRARIES(testbed reactphysics3d openglframework glfw ${GLEW_LIBRARIES} ${GLFW_LIBRARIES}) diff --git a/testbed/common/Capsule.cpp b/testbed/common/Capsule.cpp index b65146d4..77bfe437 100644 --- a/testbed/common/Capsule.cpp +++ b/testbed/common/Capsule.cpp @@ -238,7 +238,7 @@ void Capsule::createVBOAndVAO() { // Create th VBO for the indices data mVBOIndices.create(); 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.unbind(); diff --git a/testbed/common/Sphere.cpp b/testbed/common/Sphere.cpp index 61fe9671..783478ce 100644 --- a/testbed/common/Sphere.cpp +++ b/testbed/common/Sphere.cpp @@ -236,7 +236,7 @@ void Sphere::createVBOAndVAO() { // Create th VBO for the indices data mVBOIndices.create(); 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.unbind();