S3 ViRGE S3D emulation. Currently very slow, bugs, features missing.

Added S3 ViRGE/DX emulation, as the DX drivers are better than those for the original chip.
This commit is contained in:
TomW 2014-05-26 18:13:23 +01:00
commit e09b68b242
5 changed files with 1208 additions and 44 deletions

View file

@ -51,7 +51,7 @@ static struct
#define TIMER_1SEC 1
int winsizex=640,winsizey=480;
int gfx_present[18];
int gfx_present[19];
int wakeups,wokeups;
#undef cs
CRITICAL_SECTION cs;
@ -387,13 +387,13 @@ int WINAPI WinMain (HINSTANCE hThisInstance,
}
for (c = 0; c < 18; c++)
for (c = 0; c < 19; c++)
gfx_present[c] = video_card_available(video_old_to_new(c));
if (!video_card_available(video_old_to_new(gfxcard)))
{
if (romset!=-1) MessageBox(hwnd,"Configured video BIOS not available.\nDefaulting to available romset.","PCem error",MB_OK);
for (c = 17; c >= 0; c--)
for (c = 18; c >= 0; c--)
{
if (gfx_present[c])
{