From a928c73827ef1b5c08d69d35c4bdb33d3d35d9a3 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Sun, 6 Sep 2015 12:38:10 +0200 Subject: [PATCH] Fix compilation errors on Visual Studio --- testbed/CMakeLists.txt | 2 +- testbed/common/Capsule.cpp | 2 +- testbed/common/Sphere.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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();