Commit 0b9eb032 authored by Jan Möbius's avatar Jan Möbius

Empty skydome image if basic image not found

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free-Staging@16400 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 5181a4b6
...@@ -237,8 +237,16 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S ...@@ -237,8 +237,16 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
if ( updateBuffers_ ) { if ( updateBuffers_ ) {
QFileInfo info(dome_.textureFileName());
QString filename = dome_.textureFileName();
// Fallback image
if ( !info.exists() )
filename = OpenFlipper::Options::iconDirStr() + QDir::separator() + "EmptySkyDome.png";
// Test: Load texture image // Test: Load texture image
QImage texture(dome_.textureFileName()); QImage texture(filename);
GLuint textureId; GLuint textureId;
......
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
horizontalFOV_(360), horizontalFOV_(360),
verticalFOV_(90), verticalFOV_(90),
topOffset_(45), topOffset_(45),
textureFileName_("Panorama-Aachener-Dom-Chor-6MP.jpg") /// TODO: Remove this! textureFileName_("")
{ {
} }
......
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