diff --git a/D3D11Engine/GothicAPI.cpp b/D3D11Engine/GothicAPI.cpp index 2d8ffeb4..83fdcb41 100644 --- a/D3D11Engine/GothicAPI.cpp +++ b/D3D11Engine/GothicAPI.cpp @@ -807,6 +807,7 @@ void GothicAPI::DrawWorldMeshNaive() { START_TIMING(); if ( RendererState.RendererSettings.DrawSkeletalMeshes ) { // Set up frustum for the camera + RendererState.RasterizerState.SetDefault(); zCCamera::GetCamera()->Activate(); for ( const auto& vobInfo : AnimatedSkeletalVobs ) { @@ -1571,7 +1572,6 @@ void GothicAPI::DrawSkeletalMeshVob( SkeletalVobInfo* vi, float distance ) { D3D11GraphicsEngine* g = (D3D11GraphicsEngine*)Engine::GraphicsEngine; // Setup renderstate - RendererState.RasterizerState.SetDefault(); RendererState.RasterizerState.CullMode = GothicRasterizerStateInfo::CM_CULL_FRONT; RendererState.RasterizerState.SetDirty(); @@ -1743,6 +1743,7 @@ void GothicAPI::DrawSkeletalGhosts() { D3D11GraphicsEngine* g = (D3D11GraphicsEngine*)Engine::GraphicsEngine; if ( !GhostSkeletalVobs.empty() ) { // Setup alpha blending + RendererState.RasterizerState.SetDefault(); RendererState.BlendState.SetAlphaBlending(); RendererState.BlendState.SetDirty(); RendererState.DepthState.SetDefault();