d3d9: Surfaces always have resource type WINED3DRTYPE_SURFACE.
authorHenri Verbeet <hverbeet@codeweavers.com>
Tue, 8 Mar 2011 18:41:08 +0000 (19:41 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 9 Mar 2011 11:29:23 +0000 (12:29 +0100)
dlls/d3d9/device.c

index 1dd6895d072c114deb6bf7e9b3f39075cc3e5298..e008b31b800ec92d7acf5703d747245a75c0bdc0 100644 (file)
@@ -1081,8 +1081,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(IDirect3DDevice9Ex *iface,
 
     /* This method is only allowed with surfaces that are render targets, or
      * offscreen plain surfaces in D3DPOOL_DEFAULT. */
-    if (!(desc.usage & WINED3DUSAGE_RENDERTARGET)
-            && (desc.pool != WINED3DPOOL_DEFAULT || desc.resource_type != WINED3DRTYPE_SURFACE))
+    if (!(desc.usage & WINED3DUSAGE_RENDERTARGET) && desc.pool != WINED3DPOOL_DEFAULT)
     {
         wined3d_mutex_unlock();
         WARN("Surface is not a render target, or not a stand-alone D3DPOOL_DEFAULT surface\n");