Commit 2c1e8dec authored by Florian Köberle's avatar Florian Köberle Committed by Alexandre Julliard

wined3d: Let GetRasterStatus return D3DERR_INVALIDCALL.

parent 894a150f
...@@ -123,15 +123,18 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface, ...@@ -123,15 +123,18 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetBackBuffer(IWineD3DSwapChain *iface,
HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, WINED3DRASTER_STATUS *pRasterStatus) { HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetRasterStatus(IWineD3DSwapChain *iface, WINED3DRASTER_STATUS *pRasterStatus) {
static BOOL warned; static BOOL warned;
pRasterStatus->InVBlank = TRUE; /* No OpenGL equivalent */
pRasterStatus->ScanLine = 0;
/* No openGL equivalent */
if (!warned) if (!warned)
{ {
FIXME("iface %p, raster_status %p stub!\n", iface, pRasterStatus); FIXME("iface %p, raster_status %p stub!\n", iface, pRasterStatus);
warned = TRUE; warned = TRUE;
} }
return WINED3D_OK; /* Obtaining the raster status is a widely implemented but optional feature.
* When this method returns OK then the application Starcraft 2 expects that
* the pRasterStatus->InVBlank value differs over time. To prevent Starcraft 2
* from running in an infinite loop at startup this method returns INVALIDCALL.
*/
return WINED3DERR_INVALIDCALL;
} }
HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface, WINED3DDISPLAYMODE*pMode) { HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface, WINED3DDISPLAYMODE*pMode) {
......
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