Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
3587dfeb
Commit
3587dfeb
authored
Oct 10, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Oct 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Release pixel shaders after we're done with them in the visual test.
parent
49864b08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
visual.c
dlls/d3d9/tests/visual.c
+8
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
3587dfeb
...
...
@@ -2567,8 +2567,11 @@ static void texdepth_test(IDirect3DDevice9 *device)
color
=
getPixelColor
(
device
,
638
,
240
);
ok
(
color
==
0x000000ff
,
"Pixel 638(100%% + 2 pixel) has color %08x, expected 0x000000ff
\n
"
,
color
);
/* Cleanup */
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
NULL
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetPixelShader failed (%08x)
\n
"
,
hr
);
IDirect3DPixelShader9_Release
(
shader
);
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_ZENABLE
,
D3DZB_FALSE
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_SetRenderState returned %s
\n
"
,
DXGetErrorString9
(
hr
));
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_ZWRITEENABLE
,
TRUE
);
...
...
@@ -2722,6 +2725,11 @@ static void texkill_test(IDirect3DDevice9 *device)
ok
(
color
==
0x00ffff00
,
"Pixel 578/49 has color %08x, expected 0x00ffff00
\n
"
,
color
);
color
=
getPixelColor
(
device
,
575
,
430
);
ok
(
color
==
0x000000ff
,
"Pixel 575/49 has color %08x, expected 0x000000ff
\n
"
,
color
);
/* Cleanup */
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed (%08x)
\n
"
,
hr
);
IDirect3DPixelShader9_Release
(
shader
);
}
static
void
x8l8v8u8_test
(
IDirect3DDevice9
*
device
)
...
...
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