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
bd3b0ba6
Commit
bd3b0ba6
authored
Jan 09, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 11, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Don't expose wined3d internal flags to the application.
parent
ef9be113
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
9 deletions
+11
-9
buffer.c
dlls/d3d9/buffer.c
+2
-2
cubetexture.c
dlls/d3d9/cubetexture.c
+1
-1
surface.c
dlls/d3d9/surface.c
+1
-1
texture.c
dlls/d3d9/texture.c
+1
-1
volume.c
dlls/d3d9/volume.c
+1
-1
volumetexture.c
dlls/d3d9/volumetexture.c
+1
-1
mesh.c
dlls/d3dx9_36/tests/mesh.c
+4
-2
No files found.
dlls/d3d9/buffer.c
View file @
bd3b0ba6
...
...
@@ -245,7 +245,7 @@ static HRESULT WINAPI d3d9_vertexbuffer_GetDesc(IDirect3DVertexBuffer9 *iface,
wined3d_mutex_unlock
();
desc
->
Format
=
D3DFMT_VERTEXDATA
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
Size
=
wined3d_desc
.
size
;
desc
->
Type
=
D3DRTYPE_VERTEXBUFFER
;
...
...
@@ -540,7 +540,7 @@ static HRESULT WINAPI d3d9_indexbuffer_GetDesc(IDirect3DIndexBuffer9 *iface,
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
buffer
->
format
);
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
Size
=
wined3d_desc
.
size
;
desc
->
Type
=
D3DRTYPE_INDEXBUFFER
;
...
...
dlls/d3d9/cubetexture.c
View file @
bd3b0ba6
...
...
@@ -311,7 +311,7 @@ static HRESULT WINAPI IDirect3DCubeTexture9Impl_GetLevelDesc(IDirect3DCubeTextur
wined3d_resource_get_desc
(
sub_resource
,
&
wined3d_desc
);
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
MultiSampleType
=
wined3d_desc
.
multisample_type
;
desc
->
MultiSampleQuality
=
wined3d_desc
.
multisample_quality
;
...
...
dlls/d3d9/surface.c
View file @
bd3b0ba6
...
...
@@ -275,7 +275,7 @@ static HRESULT WINAPI IDirect3DSurface9Impl_GetDesc(IDirect3DSurface9 *iface, D3
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
MultiSampleType
=
wined3d_desc
.
multisample_type
;
desc
->
MultiSampleQuality
=
wined3d_desc
.
multisample_quality
;
...
...
dlls/d3d9/texture.c
View file @
bd3b0ba6
...
...
@@ -305,7 +305,7 @@ static HRESULT WINAPI IDirect3DTexture9Impl_GetLevelDesc(IDirect3DTexture9 *ifac
wined3d_resource_get_desc
(
sub_resource
,
&
wined3d_desc
);
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
MultiSampleType
=
wined3d_desc
.
multisample_type
;
desc
->
MultiSampleQuality
=
wined3d_desc
.
multisample_quality
;
...
...
dlls/d3d9/volume.c
View file @
bd3b0ba6
...
...
@@ -206,7 +206,7 @@ static HRESULT WINAPI IDirect3DVolume9Impl_GetDesc(IDirect3DVolume9 *iface, D3DV
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
Width
=
wined3d_desc
.
width
;
desc
->
Height
=
wined3d_desc
.
height
;
...
...
dlls/d3d9/volumetexture.c
View file @
bd3b0ba6
...
...
@@ -304,7 +304,7 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetLevelDesc(IDirect3DVolumeTe
wined3d_resource_get_desc
(
sub_resource
,
&
wined3d_desc
);
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
Type
=
wined3d_desc
.
resource_type
;
desc
->
Usage
=
wined3d_desc
.
usage
;
desc
->
Usage
=
wined3d_desc
.
usage
&
WINED3DUSAGE_MASK
;
desc
->
Pool
=
wined3d_desc
.
pool
;
desc
->
Width
=
wined3d_desc
.
width
;
desc
->
Height
=
wined3d_desc
.
height
;
...
...
dlls/d3dx9_36/tests/mesh.c
View file @
bd3b0ba6
...
...
@@ -328,7 +328,8 @@ static void compare_mesh(const char *name, ID3DXMesh *d3dxmesh, struct mesh *mes
name
,
index_buffer_description
.
Format
,
D3DFMT_INDEX16
);
ok
(
index_buffer_description
.
Type
==
D3DRTYPE_INDEXBUFFER
,
"Test %s, result %x, expected %x (D3DRTYPE_INDEXBUFFER)
\n
"
,
name
,
index_buffer_description
.
Type
,
D3DRTYPE_INDEXBUFFER
);
todo_wine
ok
(
index_buffer_description
.
Usage
==
0
,
"Test %s, result %x, expected %x
\n
"
,
name
,
index_buffer_description
.
Usage
,
0
);
ok
(
index_buffer_description
.
Usage
==
0
,
"Test %s, result %#x, expected %#x.
\n
"
,
name
,
index_buffer_description
.
Usage
,
0
);
ok
(
index_buffer_description
.
Pool
==
D3DPOOL_MANAGED
,
"Test %s, result %x, expected %x (D3DPOOL_MANAGED)
\n
"
,
name
,
index_buffer_description
.
Pool
,
D3DPOOL_MANAGED
);
expected
=
number_of_faces
*
sizeof
(
WORD
)
*
3
;
...
...
@@ -3676,7 +3677,8 @@ static void compare_text_outline_mesh(const char *name, ID3DXMesh *d3dxmesh, str
name
,
index_buffer_description
.
Format
,
D3DFMT_INDEX16
);
ok
(
index_buffer_description
.
Type
==
D3DRTYPE_INDEXBUFFER
,
"Test %s, result %x, expected %x (D3DRTYPE_INDEXBUFFER)
\n
"
,
name
,
index_buffer_description
.
Type
,
D3DRTYPE_INDEXBUFFER
);
todo_wine
ok
(
index_buffer_description
.
Usage
==
0
,
"Test %s, result %x, expected %x
\n
"
,
name
,
index_buffer_description
.
Usage
,
0
);
ok
(
index_buffer_description
.
Usage
==
0
,
"Test %s, result %#x, expected %#x.
\n
"
,
name
,
index_buffer_description
.
Usage
,
0
);
ok
(
index_buffer_description
.
Pool
==
D3DPOOL_MANAGED
,
"Test %s, result %x, expected %x (D3DPOOL_MANAGED)
\n
"
,
name
,
index_buffer_description
.
Pool
,
D3DPOOL_MANAGED
);
expected
=
number_of_faces
*
sizeof
(
WORD
)
*
3
;
...
...
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