added alternative paths, when files are not found

This commit is contained in:
ejcoumans
2006-09-20 03:19:27 +00:00
parent 93e145a4fc
commit 52a950db62
2 changed files with 22 additions and 4 deletions

View File

@@ -431,11 +431,11 @@ void initCubeVBO ()
{
//the filenames have additional path to make it easier for some platforms
if ( noVertexTextureSupport )
cubeShader = new GLSL_ShaderPair ( "CubeShader", "../../Extras/GPUphysics/cubeShaderNoTexture.vert",
"../../Extras/GPUphysics/cubeShader.frag" ) ;
cubeShader = new GLSL_ShaderPair ( "CubeShader", "cubeShaderNoTexture.vert",
"cubeShader.frag" ) ;
else
cubeShader = new GLSL_ShaderPair ( "CubeShader", "../../Extras/GPUphysics/cubeShader.vert",
"../../Extras/GPUphysics/cubeShader.frag" ) ;
cubeShader = new GLSL_ShaderPair ( "CubeShader", "cubeShader.vert",
"cubeShader.frag" ) ;
assert ( cubeShader -> compiledOK () ) ;
}
}