Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
ad45d2c2
Commit
ad45d2c2
authored
Mar 19, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Use a separate device for texop_test().
parent
91d3dcff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
visual.c
dlls/d3d9/tests/visual.c
+21
-4
No files found.
dlls/d3d9/tests/visual.c
View file @
ad45d2c2
...
...
@@ -10260,13 +10260,17 @@ cleanup:
if
(
dsttex
)
IDirect3DTexture9_Release
(
dsttex
);
}
static
void
texop_test
(
IDirect3DDevice9
*
device
)
static
void
texop_test
(
void
)
{
IDirect3DVertexDeclaration9
*
vertex_declaration
=
NULL
;
IDirect3DTexture9
*
texture
=
NULL
;
D3DLOCKED_RECT
locked_rect
;
IDirect3DDevice9
*
device
;
IDirect3D9
*
d3d
;
D3DCOLOR
color
;
ULONG
refcount
;
D3DCAPS9
caps
;
HWND
window
;
HRESULT
hr
;
unsigned
i
;
...
...
@@ -10319,6 +10323,16 @@ static void texop_test(IDirect3DDevice9 *device)
{
D3DTOP_LERP
,
"LERP"
,
D3DTEXOPCAPS_LERP
,
D3DCOLOR_ARGB
(
0x00
,
0x00
,
0x33
,
0x33
)},
};
window
=
CreateWindowA
(
"static"
,
"d3d9_test"
,
WS_OVERLAPPEDWINDOW
|
WS_VISIBLE
,
0
,
0
,
640
,
480
,
NULL
,
NULL
,
NULL
,
NULL
);
d3d
=
Direct3DCreate9
(
D3D_SDK_VERSION
);
ok
(
!!
d3d
,
"Failed to create a D3D object.
\n
"
);
if
(
!
(
device
=
create_device
(
d3d
,
window
,
window
,
TRUE
)))
{
skip
(
"Failed to create a D3D device, skipping tests.
\n
"
);
goto
done
;
}
memset
(
&
caps
,
0
,
sizeof
(
caps
));
hr
=
IDirect3DDevice9_GetDeviceCaps
(
device
,
&
caps
);
ok
(
SUCCEEDED
(
hr
),
"GetDeviceCaps failed with 0x%08x
\n
"
,
hr
);
...
...
@@ -10386,9 +10400,13 @@ static void texop_test(IDirect3DDevice9 *device)
ok
(
SUCCEEDED
(
hr
),
"Present failed with 0x%08x
\n
"
,
hr
);
}
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
IDirect3DTexture9_Release
(
texture
);
IDirect3DVertexDeclaration9_Release
(
vertex_declaration
);
refcount
=
IDirect3DDevice9_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
done:
IDirect3D9_Release
(
d3d
);
DestroyWindow
(
window
);
}
static
void
yuv_color_test
(
IDirect3DDevice9
*
device
)
...
...
@@ -15748,11 +15766,10 @@ START_TEST(visual)
}
else
skip
(
"No ps_1_1 support
\n
"
);
texop_test
(
device_ptr
);
cleanup_device
(
device_ptr
);
device_ptr
=
NULL
;
texop_test
();
texop_range_test
();
alphareplicate_test
();
dp3_alpha_test
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment