Skip to content

Commit

Permalink
Merge pull request SaiyansKing#129 from tzarchat/master
Browse files Browse the repository at this point in the history
Remove unnecessary if statement in DX7 DrawPrimitive.
  • Loading branch information
SaiyansKing authored Nov 25, 2023
2 parents bbd0847 + 8c73b7d commit 986c8ff
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions D3D11Engine/D3D7/MyDirect3DDevice7.h
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,6 @@ class MyDirect3DDevice7 : public IDirect3DDevice7 {

HRESULT STDMETHODCALLTYPE DrawPrimitive( D3DPRIMITIVETYPE dptPrimitiveType, DWORD dwVertexTypeDesc, LPVOID lpvVertices, DWORD dwVertexCount, DWORD dwFlags ) {
DebugWrite( "MyDirect3DDevice7::DrawPrimitive" );
if ( dptPrimitiveType != D3DPT_TRIANGLEFAN )
{
return S_OK;
}

// Convert them into ExVertices
static std::vector<ExVertexStruct> exv;
Expand Down

0 comments on commit 986c8ff

Please sign in to comment.