Skip to content

Commit

Permalink
[d3d8] More style nits
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpyneDreams committed Jul 7, 2024
1 parent d17ce53 commit 1a2fbc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/d3d8/d3d8_state_block.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#include "d3d8_state_block.h"

HRESULT dxvk::D3D8StateBlock::Capture() {
if (unlikely(m_stateBlock == nullptr)) return D3DERR_INVALIDCALL;
if (unlikely(m_stateBlock == nullptr))
return D3DERR_INVALIDCALL;

if (m_capture.vs) m_device->GetVertexShader(&m_vertexShader);
if (m_capture.ps) m_device->GetPixelShader(&m_pixelShader);
Expand All @@ -24,7 +25,8 @@ HRESULT dxvk::D3D8StateBlock::Capture() {
}

HRESULT dxvk::D3D8StateBlock::Apply() {
if (unlikely(m_stateBlock == nullptr)) return D3DERR_INVALIDCALL;
if (unlikely(m_stateBlock == nullptr))
return D3DERR_INVALIDCALL;

HRESULT res = m_stateBlock->Apply();

Expand Down

0 comments on commit 1a2fbc1

Please sign in to comment.