wined3d: Fix the return value for IWineD3DDeviceImpl_ColorFill

H. Verbeet hverbeet at gmail.com
Thu Apr 26 17:17:54 CDT 2007


We obviously shouldn't return WINED3DERR_INVALIDCALL here.

Changelog:
  - Fix the return value for IWineD3DDeviceImpl_ColorFill
-------------- next part --------------
---

 dlls/wined3d/device.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index aeb9963..f4f3002 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -5218,7 +5218,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface, IWineD
 
     if (wined3d_settings.offscreen_rendering_mode == ORM_FBO) {
         color_fill_fbo(iface, pSurface, pRect, color);
-        return WINED3DERR_INVALIDCALL;
+        return WINED3D_OK;
     } else {
         /* Just forward this to the DirectDraw blitting engine */
         memset(&BltFx, 0, sizeof(BltFx));


More information about the wine-patches mailing list