Bladeren bron

Fix D3D build.

Lasse Öörni 10 jaren geleden
bovenliggende
commit
0bf8877d1e
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      Source/Urho3D/Graphics/View.cpp
  2. 1 1
      Source/Urho3D/Graphics/View.h

+ 1 - 1
Source/Urho3D/Graphics/View.cpp

@@ -1641,7 +1641,7 @@ void View::SetRenderTargets(RenderPathCommand& command)
                         graphics_->GetDummyColorFormat(), false, false, false);
                         graphics_->GetDummyColorFormat(), false, false, false);
                 }
                 }
                 #endif
                 #endif
-                graphics_->SetRenderTarget(0, depthOnlyDummyTexture_);
+                graphics_->SetRenderTarget(0, GetRenderSurfaceFromTexture(depthOnlyDummyTexture_));
                 graphics_->SetDepthStencil(GetRenderSurfaceFromTexture(texture));
                 graphics_->SetDepthStencil(GetRenderSurfaceFromTexture(texture));
             }
             }
             else
             else

+ 1 - 1
Source/Urho3D/Graphics/View.h

@@ -297,7 +297,7 @@ private:
     /// Texture containing the latest viewport texture.
     /// Texture containing the latest viewport texture.
     Texture* currentViewportTexture_;
     Texture* currentViewportTexture_;
     /// Dummy texture for D3D9 depth only rendering.
     /// Dummy texture for D3D9 depth only rendering.
-    Texture2D* depthOnlyDummyTexture_;
+    Texture* depthOnlyDummyTexture_;
     /// Viewport rectangle.
     /// Viewport rectangle.
     IntRect viewRect_;
     IntRect viewRect_;
     /// Viewport size.
     /// Viewport size.