Skip to content

Commit b70efe2

Browse files
committed
- bugfix
1 parent d5b9b90 commit b70efe2

File tree

3 files changed

+10
-20
lines changed

3 files changed

+10
-20
lines changed

Demos/CouplingDemos/RigidBodyClothCouplingDemo.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ int main( int argc, char **argv )
136136

137137
void initShader()
138138
{
139-
std::string vertFile = std::string(PBD_DATA_PATH) + "/shaders/vs_flat.glsl";
140-
std::string geomFile = std::string(PBD_DATA_PATH) + "/shaders/gs_flat.glsl";
141-
std::string fragFile = std::string(PBD_DATA_PATH) + "/shaders/fs_flat.glsl";
139+
std::string vertFile = dataPath + "/shaders/vs_flat.glsl";
140+
std::string geomFile = dataPath + "/shaders/gs_flat.glsl";
141+
std::string fragFile = dataPath + "/shaders/fs_flat.glsl";
142142
shader = MiniGL::createShader(vertFile, geomFile, fragFile);
143143

144144
if (shader == NULL)
@@ -152,8 +152,8 @@ void initShader()
152152
shader->addUniform("specular_factor");
153153
shader->end();
154154

155-
vertFile = std::string(PBD_DATA_PATH) + "/shaders/vs_smoothTex.glsl";
156-
fragFile = std::string(PBD_DATA_PATH) + "/shaders/fs_smoothTex.glsl";
155+
vertFile = dataPath + "/shaders/vs_smoothTex.glsl";
156+
fragFile = dataPath + "/shaders/fs_smoothTex.glsl";
157157
shaderTex = MiniGL::createShader(vertFile, "", fragFile);
158158

159159
if (shaderTex == NULL)
@@ -397,7 +397,7 @@ void createRigidBodyModel()
397397
SimulationModel::RigidBodyVector &rb = model.getRigidBodies();
398398
SimulationModel::ConstraintVector &constraints = model.getConstraints();
399399

400-
string fileName = string(PBD_DATA_PATH) + "/models/cube.obj";
400+
string fileName = dataPath + "/models/cube.obj";
401401
IndexedFaceMesh mesh;
402402
VertexData vd;
403403
OBJLoader::loadObj(fileName, vd, mesh, Eigen::Vector3f(width, height, depth));

extern/freeglut/src/CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
6666
set_target_properties(freeglut PROPERTIES FOLDER "External Dependencies")
6767
include_directories(${PROJECT_PATH}/extern/freeglut/include)
6868

69-
if (WIN32)
70-
add_custom_command(
71-
TARGET freeglut
72-
POST_BUILD
73-
COMMAND xcopy /r /y \"$\(TargetPath\)" \"$\(TargetDir\)..\\..\\bin\\$\(ConfigurationName\)\\"
74-
)
75-
endif (WIN32)
69+
70+
71+

extern/glew/CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,5 @@ set_target_properties(glew PROPERTIES FOLDER "External Dependencies")
1111
add_definitions(-DGLEW_NO_GLU -DGLEW_BUILD)
1212

1313
if (WIN32)
14-
target_link_libraries(glew opengl32.lib)
15-
16-
add_custom_command(
17-
TARGET glew
18-
POST_BUILD
19-
COMMAND xcopy /r /y \"$\(TargetPath\)" \"$\(TargetDir\)..\\..\\bin\\$\(ConfigurationName\)\\"
20-
)
14+
target_link_libraries(glew opengl32.lib)
2115
endif()

0 commit comments

Comments
 (0)