Lines Matching refs:stateblock
1307 IWineD3DStateBlock *stateblock;
1316 hr = IWineD3DDevice_EndStateBlock(This->WineD3DDevice , &stateblock);
1323 *pToken = d3d8_allocate_handle(&This->handle_table, stateblock, D3D8_HANDLE_SB);
1330 IWineD3DStateBlock_Release(stateblock);
1336 TRACE("Returning %#x (%p).\n", *pToken, stateblock);
1343 IWineD3DStateBlock *stateblock;
1349 stateblock = d3d8_get_object(&This->handle_table, Token - 1, D3D8_HANDLE_SB);
1350 if (!stateblock)
1356 hr = IWineD3DStateBlock_Apply(stateblock);
1364 IWineD3DStateBlock *stateblock;
1370 stateblock = d3d8_get_object(&This->handle_table, Token - 1, D3D8_HANDLE_SB);
1371 if (!stateblock)
1377 hr = IWineD3DStateBlock_Capture(stateblock);
1385 IWineD3DStateBlock *stateblock;
1390 stateblock = d3d8_free_handle(&This->handle_table, Token - 1, D3D8_HANDLE_SB);
1392 if (!stateblock)
1399 if (IWineD3DStateBlock_Release((IUnknown *)stateblock))
1401 ERR("Stateblock %p has references left, this shouldn't happen.\n", stateblock);
1412 IWineD3DStateBlock *stateblock;
1421 WARN("Unexpected stateblock type, returning D3DERR_INVALIDCALL\n");
1427 &stateblock, NULL);
1435 *handle = d3d8_allocate_handle(&This->handle_table, stateblock, D3D8_HANDLE_SB);
1442 IWineD3DStateBlock_Release(stateblock);
1448 TRACE("Returning %#x (%p).\n", *handle, stateblock);