Add a 'flush' command to graphics subsystem

...I'm actually concerned that I went a bit overkill trying to prevent
backwards compatibility issues with this abstraction design, because
this is a large number of files that have to be modified just to add a
single graphics subsystem export.  Someone's going to strangle me, and
when you know that someone might strangle you, that means that you did
something wrong.  We'll have to look in to simplifying this in the
future without killing backward compatibility safety.
This commit is contained in:
jp9000
2014-06-25 19:32:34 -07:00
parent 749cff2e3a
commit 27010a2f56
7 changed files with 22 additions and 0 deletions

View File

@@ -1204,6 +1204,11 @@ void device_present(device_t device)
device->curSwapChain->swap->Present(0, 0);
}
void device_flush(device_t device)
{
device->context->Flush();
}
void device_setcullmode(device_t device, enum gs_cull_mode mode)
{
if (mode == device->rasterState.cullMode)