Skip to content

Commit

Permalink
adding unbuffered drawprimitive
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Oct 16, 2023
1 parent 219ec69 commit f5e3f80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ddraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -960,3 +960,9 @@ void ddraw_buffer_histogram(Direct3DDevicePatched *device) {

device->DrawPrimitiveUnbuffered(D3DPT_LINELIST, CUSTOMFVF, vertices, 512, NULL);
}

HRESULT Direct3DDevicePatched::DrawPrimitiveUnbuffered(D3DPRIMITIVETYPE primitive_type, DWORD fvf, void *vertices, DWORD vertex_count, DWORD flags)
{
WRAP("%s:%d \t%s\n", __FILE__, __LINE__, __FUNCTION__);
return mWrapped->DrawPrimitive(primitive_type, fvf, vertices, vertex_count, flags);
}

0 comments on commit f5e3f80

Please sign in to comment.