Skip to content

Commit

Permalink
Merge remote-tracking branch 'SaiyansKing/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kirides committed Jul 4, 2021
2 parents f329553 + 9573f16 commit ab521bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion D3D11Engine/GothicAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit ab521bb

Please sign in to comment.