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
886c196e
Commit
886c196e
authored
Nov 15, 2006
by
Markus Amsler
Committed by
Alexandre Julliard
Nov 15, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Back buffer is identical to the render target, test it only once.
parent
48c00662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
device.c
dlls/d3d8/tests/device.c
+13
-12
No files found.
dlls/d3d8/tests/device.c
View file @
886c196e
...
...
@@ -327,10 +327,22 @@ static void test_refcount(void)
todo_wine
CHECK_REFCOUNT
(
pRenderTarget
,
2
);
todo_wine
CHECK_RELEASE_REFCOUNT
(
pRenderTarget
,
1
);
todo_wine
CHECK_RELEASE_REFCOUNT
(
pRenderTarget
,
0
);
pRenderTarget
=
NULL
;
}
CHECK_REFCOUNT
(
pDevice
,
--
refcount
);
/* Render target and back buffer are identical. */
hr
=
IDirect3DDevice8_GetBackBuffer
(
pDevice
,
0
,
0
,
&
pBackBuffer
);
todo_wine
CHECK_CALL
(
hr
,
"GetBackBuffer"
,
pDevice
,
++
refcount
);
if
(
pBackBuffer
)
{
todo_wine
CHECK_RELEASE_REFCOUNT
(
pBackBuffer
,
0
);
ok
(
pRenderTarget
==
pBackBuffer
,
"RenderTarget=%p and BackBuffer=%p should be the same.
\n
"
,
pRenderTarget
,
pBackBuffer
);
pBackBuffer
=
NULL
;
}
CHECK_REFCOUNT
(
pDevice
,
--
refcount
);
pRenderTarget
=
NULL
;
hr
=
IDirect3DDevice8_GetDepthStencilSurface
(
pDevice
,
&
pStencilSurface
);
todo_wine
CHECK_CALL
(
hr
,
"GetDepthStencilSurface"
,
pDevice
,
++
refcount
);
if
(
pStencilSurface
)
...
...
@@ -342,17 +354,6 @@ static void test_refcount(void)
}
CHECK_REFCOUNT
(
pDevice
,
--
refcount
);
hr
=
IDirect3DDevice8_GetBackBuffer
(
pDevice
,
0
,
0
,
&
pBackBuffer
);
todo_wine
CHECK_CALL
(
hr
,
"GetBackBuffer"
,
pDevice
,
++
refcount
);
if
(
pBackBuffer
)
{
todo_wine
CHECK_SURFACE_CONTAINER
(
pBackBuffer
,
IID_IDirect3DDevice8
,
pDevice
);
todo_wine
CHECK_REFCOUNT
(
pBackBuffer
,
1
);
todo_wine
CHECK_RELEASE_REFCOUNT
(
pBackBuffer
,
0
);
pBackBuffer
=
NULL
;
}
CHECK_REFCOUNT
(
pDevice
,
--
refcount
);
/* Buffers */
hr
=
IDirect3DDevice8_CreateIndexBuffer
(
pDevice
,
16
,
0
,
D3DFMT_INDEX32
,
D3DPOOL_DEFAULT
,
&
pIndexBuffer
);
CHECK_CALL
(
hr
,
"CreateIndexBuffer"
,
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