Commit ec9b17ab 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 19e084a6
......@@ -193,6 +193,8 @@
std::string shaderDirectory = std::string( shaderDir.toUtf8() );
shaderNode_->setShaderDir( shaderDirectory );
if ( !OpenFlipper::Options::isWindows ) {
if ( QFile( shaderDir + "Phong/Vertex.glsl").exists() && QFile( shaderDir + "Phong/Fragment.glsl" ).exists() ) {
shaderNode_->setShader(ACG::SceneGraph::DrawModes::SOLID_PHONG_SHADED,
"Phong/Vertex.glsl" ,
......@@ -223,6 +225,8 @@
} else
std::cerr << "Shader Files for Ward not found!!" << std::endl;
} else
std::cerr << "Shader support disabled for windows " << std::endl;
// Update all nodes
update();
......
Markdown is supported
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