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
630d6026
Commit
630d6026
authored
Jul 24, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Only test pixel shaders for refcounting if they are supported.
parent
5016f48d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
device.c
dlls/d3d8/tests/device.c
+7
-2
No files found.
dlls/d3d8/tests/device.c
View file @
630d6026
...
...
@@ -292,6 +292,7 @@ static void test_refcount(void)
IDirect3DSurface8
*
pBackBuffer
=
NULL
;
DWORD
dStateBlock
=
-
1
;
IDirect3DSwapChain8
*
pSwapChain
=
NULL
;
D3DCAPS8
caps
;
D3DPRESENT_PARAMETERS
d3dpp
;
D3DDISPLAYMODE
d3ddm
;
...
...
@@ -326,6 +327,7 @@ static void test_refcount(void)
trace
(
"could not create device, IDirect3D8_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
IDirect3DDevice8_GetDeviceCaps
(
pDevice
,
&
caps
);
refcount
=
get_refcount
(
(
IUnknown
*
)
pDevice
);
ok
(
refcount
==
1
,
"Invalid device RefCount %d
\n
"
,
refcount
);
...
...
@@ -435,8 +437,11 @@ static void test_refcount(void)
/* Shaders */
hr
=
IDirect3DDevice8_CreateVertexShader
(
pDevice
,
decl
,
simple_vs
,
&
dVertexShader
,
0
);
CHECK_CALL
(
hr
,
"CreateVertexShader"
,
pDevice
,
refcount
);
hr
=
IDirect3DDevice8_CreatePixelShader
(
pDevice
,
simple_ps
,
&
dPixelShader
);
CHECK_CALL
(
hr
,
"CreatePixelShader"
,
pDevice
,
refcount
);
if
(
caps
.
PixelShaderVersion
>=
D3DPS_VERSION
(
1
,
0
))
{
hr
=
IDirect3DDevice8_CreatePixelShader
(
pDevice
,
simple_ps
,
&
dPixelShader
);
CHECK_CALL
(
hr
,
"CreatePixelShader"
,
pDevice
,
refcount
);
}
/* Textures */
hr
=
IDirect3DDevice8_CreateTexture
(
pDevice
,
32
,
32
,
3
,
0
,
D3DFMT_X8R8G8B8
,
D3DPOOL_DEFAULT
,
&
pTexture
);
CHECK_CALL
(
hr
,
"CreateTexture"
,
pDevice
,
++
refcount
);
...
...
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