Commit 313b0107 authored by Oliver Stieber's avatar Oliver Stieber Committed by Alexandre Julliard

Track the state of softwareVertexProcessing.

parent 12a4bda6
......@@ -4487,15 +4487,25 @@ HRESULT WINAPI IWineD3DDeviceImpl_GetCurrentTexturePalette(IWineD3DDevice *ifa
HRESULT WINAPI IWineD3DDeviceImpl_SetSoftwareVertexProcessing(IWineD3DDevice *iface, BOOL bSoftware) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
FIXME("(%p) : stub\n", This);
static BOOL showFixmes = TRUE;
if (showFixmes) {
FIXME("(%p) : stub\n", This);
showFixmes = FALSE;
}
This->updateStateBlock->softwareVertexProcessing = bSoftware;
return D3D_OK;
}
BOOL WINAPI IWineD3DDeviceImpl_GetSoftwareVertexProcessing(IWineD3DDevice *iface) {
IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface;
FIXME("(%p) : stub\n", This);
return FALSE;
static BOOL showFixmes = TRUE;
if (showFixmes) {
FIXME("(%p) : stub\n", This);
showFixmes = FALSE;
}
return This->updateStateBlock->softwareVertexProcessing;
}
......
......@@ -367,6 +367,8 @@ should really perform a delta so that only the changes get updated*/
IWineD3DDevice_SetVertexDeclaration(pDevice, This->vertexDecl);
}
IWineD3DDevice_SetSoftwareVertexProcessing(pDevice, This->softwareVertexProcessing);
/* Others + Render & Texture */
if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */ This->blockType == D3DSBT_ALL) {
for (i = 1; i <= HIGHEST_TRANSFORMSTATE; i++) {
......
......@@ -890,6 +890,8 @@ struct IWineD3DStateBlockImpl
void *vertexShader; /* @TODO: Replace void * with IWineD3DVertexShader * */
BOOL softwareVertexProcessing;
/* Stream Source */
BOOL streamIsUP;
UINT streamStride[MAX_STREAMS];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment