Henri Verbeet : d3d9/tests: Avoid LPDIRECT3DTEXTURE9.

Alexandre Julliard julliard at winehq.org
Tue Oct 30 13:27:35 CDT 2012


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

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Tue Oct 30 01:01:44 2012 +0100

d3d9/tests: Avoid LPDIRECT3DTEXTURE9.

---

 dlls/d3d9/tests/visual.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index b6763099..03678d0 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -6934,11 +6934,10 @@ static void srgbtexture_test(IDirect3DDevice9 *device)
      * texture stage state to render a quad using that texture.  The resulting
      * color components should be 0x36 (~ 0.21), per this formula:
      *    linear_color = ((srgb_color + 0.055) / 1.055) ^ 2.4
-     * This is true where srgb_color > 0.04045.
-     */
+     * This is true where srgb_color > 0.04045. */
+    struct IDirect3DTexture9 *texture = NULL;
     IDirect3D9 *d3d = NULL;
     HRESULT hr;
-    LPDIRECT3DTEXTURE9 texture = NULL;
     LPDIRECT3DSURFACE9 surface = NULL;
     D3DLOCKED_RECT lr;
     DWORD color;




More information about the wine-cvs mailing list