Commit 9969e4da authored by Jan Möbius's avatar Jan Möbius
Browse files

Disabled shader support for windows

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2702 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 55c1bbf9
...@@ -193,6 +193,8 @@ ...@@ -193,6 +193,8 @@
std::string shaderDirectory = std::string( shaderDir.toUtf8() ); std::string shaderDirectory = std::string( shaderDir.toUtf8() );
shaderNode_->setShaderDir( shaderDirectory ); shaderNode_->setShaderDir( shaderDirectory );
if ( !OpenFlipper::Options::isWindows ) {
if ( QFile( shaderDir + "Phong/Vertex.glsl").exists() && QFile( shaderDir + "Phong/Fragment.glsl" ).exists() ) { if ( QFile( shaderDir + "Phong/Vertex.glsl").exists() && QFile( shaderDir + "Phong/Fragment.glsl" ).exists() ) {
shaderNode_->setShader(ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED, shaderNode_->setShader(ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED,
"Phong/Vertex.glsl" , "Phong/Vertex.glsl" ,
...@@ -223,6 +225,8 @@ ...@@ -223,6 +225,8 @@
} else } else
std::cerr << "Shader Files for Ward not found!!" << std::endl; std::cerr << "Shader Files for Ward not found!!" << std::endl;
} else
std::cerr << "Shader support disabled for windows " << std::endl;
// Update all nodes // Update all nodes
update(); update();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment