Browse Source

Fix non-desktop graphics builds.

Lasse Öörni 10 years ago
parent
commit
a19eead144
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Source/Urho3D/Graphics/View.cpp

+ 5 - 0
Source/Urho3D/Graphics/View.cpp

@@ -1698,7 +1698,12 @@ bool View::SetTextures(RenderPathCommand& command)
             continue;
             continue;
         }
         }
         
         
+        #ifdef DESKTOP_GRAPHICS
         Texture* texture = FindNamedTexture(command.textureNames_[i], false, i == TU_VOLUMEMAP);
         Texture* texture = FindNamedTexture(command.textureNames_[i], false, i == TU_VOLUMEMAP);
+        #else
+        Texture* texture = FindNamedTexture(command.textureNames_[i], false, false);
+        #endif
+
         if (texture)
         if (texture)
         {
         {
             graphics_->SetTexture(i, texture);
             graphics_->SetTexture(i, texture);