Dummy streams (prototype)

This commit is contained in:
sopskrutt 2004-03-24 20:59:37 +00:00
parent 2cbe5ed061
commit 932c01cbed
1 changed files with 13 additions and 0 deletions

View File

@ -98,6 +98,7 @@ static DWORD g_dwBaseVertexIndex = 0;// current active in
// current active vertex stream
static XTL::X_D3DVertexBuffer *g_pVertexBuffer = NULL; // current active vertex buffer
static XTL::IDirect3DVertexBuffer8 *g_pDummyBuffer = NULL; // Dummy buffer, used to set unused stream sources with
// current vertical blank information
static XTL::D3DVBLANKDATA g_VBData = {0};
@ -854,6 +855,18 @@ static DWORD WINAPI EmuCreateDeviceProxy(LPVOID)
g_pCachedZStencilSurface->Data = X_D3DRESOURCE_DATA_FLAG_D3DSTEN;
g_pD3DDevice8->GetDepthStencilSurface(&g_pCachedZStencilSurface->EmuSurface8);
(void)g_pD3DDevice8->CreateVertexBuffer
(
1, 0, 0, XTL::D3DPOOL_MANAGED,
&g_pDummyBuffer
);
for(int Streams = 0; Streams < 16; Streams++)
{
g_pD3DDevice8->SetStreamSource(Streams, g_pDummyBuffer, 1);
}
// begin scene
g_pD3DDevice8->BeginScene();