Henri Verbeet : wined3d: Remove a redundant check.

Alexandre Julliard julliard at winehq.org
Thu Mar 12 09:54:29 CDT 2009


Module: wine
Branch: master
Commit: 81075d2db39273186f8298c3a042dc2e13caaab9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=81075d2db39273186f8298c3a042dc2e13caaab9

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Thu Mar 12 09:53:14 2009 +0100

wined3d: Remove a redundant check.

This is redundant now, InitAdapters() will only be called once for each
IWineD3DImpl object, as pointed out by Allan Tong.

---

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

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 155d704..55b2b7e 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -4236,7 +4236,6 @@ BOOL InitAdapters(IWineD3DImpl *This)
     /* No need to hold any lock. The calling library makes sure only one thread calls
      * wined3d simultaneously
      */
-    if (This->adapter_count) return This->adapters[0].opengl;
 
     TRACE("Initializing adapters\n");
 




More information about the wine-cvs mailing list