wined3d: Remove some code that doesn't make sense.
This was introduced by abb11f30cd
, but I don't
see how it could ever do something useful. Perhaps that's a lack of
imagination on my part, but the only situation in which device->stateBlock
should be NULL is while creating the initial stateblock, and in that case we
just returned in the line above. Setting the stream frequency of all streams
to 0x01010101 doesn't make sense either.
This commit is contained in:
parent
aa96a4559e
commit
8949a2c1ad
|
@ -1658,16 +1658,7 @@ HRESULT stateblock_init(IWineD3DStateBlockImpl *stateblock, IWineD3DDeviceImpl *
|
|||
* state block. */
|
||||
if (type == WINED3DSBT_INIT || type == WINED3DSBT_RECORDED) return WINED3D_OK;
|
||||
|
||||
/* Otherwise, might as well set the whole state block to the appropriate values */
|
||||
if (device->stateBlock)
|
||||
{
|
||||
/* Saved values */
|
||||
stateblock_copy_values(stateblock, device->stateBlock, gl_info);
|
||||
}
|
||||
else
|
||||
{
|
||||
memset(stateblock->streamFreq, 1, sizeof(stateblock->streamFreq));
|
||||
}
|
||||
|
||||
TRACE("Updating changed flags appropriate for type %#x.\n", type);
|
||||
|
||||
|
|
Loading…
Reference in New Issue