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
64e419ab
Commit
64e419ab
authored
Aug 31, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core/tests: Fix compilation on systems that don't support nameless unions.
parent
2dd9b1d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/d3d10core/tests/device.c
+3
-3
No files found.
dlls/d3d10core/tests/device.c
View file @
64e419ab
...
...
@@ -161,8 +161,8 @@ static void test_create_rendertarget_view(ID3D10Device *device)
rtv_desc
.
Format
=
DXGI_FORMAT_R32G32B32A32_FLOAT
;
rtv_desc
.
ViewDimension
=
D3D10_RTV_DIMENSION_BUFFER
;
rtv_desc
.
Buffer
.
ElementOffset
=
0
;
rtv_desc
.
Buffer
.
ElementWidth
=
64
;
U
(
rtv_desc
)
.
Buffer
.
ElementOffset
=
0
;
U
(
rtv_desc
)
.
Buffer
.
ElementWidth
=
64
;
hr
=
ID3D10Device_CreateRenderTargetView
(
device
,
(
ID3D10Resource
*
)
buffer
,
&
rtv_desc
,
&
rtview
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create a rendertarget view, hr %#x
\n
"
,
hr
);
...
...
@@ -193,7 +193,7 @@ static void test_create_rendertarget_view(ID3D10Device *device)
ok
(
rtv_desc
.
Format
==
texture_desc
.
Format
,
"Expected format %#x, got %#x
\n
"
,
texture_desc
.
Format
,
rtv_desc
.
Format
);
ok
(
rtv_desc
.
ViewDimension
==
D3D10_RTV_DIMENSION_TEXTURE2D
,
"Expected view dimension D3D10_RTV_DIMENSION_TEXTURE2D, got %#x
\n
"
,
rtv_desc
.
ViewDimension
);
ok
(
rtv_desc
.
Texture2D
.
MipSlice
==
0
,
"Expected mip slice 0, got %#x
\n
"
,
rtv_desc
.
Texture2D
.
MipSlice
);
ok
(
U
(
rtv_desc
).
Texture2D
.
MipSlice
==
0
,
"Expected mip slice 0, got %#x
\n
"
,
U
(
rtv_desc
)
.
Texture2D
.
MipSlice
);
ID3D10RenderTargetView_Release
(
rtview
);
ID3D10Texture2D_Release
(
texture
);
...
...
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