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
82dffc95
Commit
82dffc95
authored
Aug 06, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Ensure the information we return in d3d10_texture2d_GetDesc() is current.
parent
4a843f28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
texture.c
dlls/d3d10core/texture.c
+17
-2
No files found.
dlls/d3d10core/texture.c
View file @
82dffc95
...
...
@@ -243,11 +243,26 @@ static void STDMETHODCALLTYPE d3d10_texture2d_Unmap(ID3D10Texture2D *iface, UINT
static
void
STDMETHODCALLTYPE
d3d10_texture2d_GetDesc
(
ID3D10Texture2D
*
iface
,
D3D10_TEXTURE2D_DESC
*
desc
)
{
struct
d3d10_texture2d
*
This
=
impl_from_ID3D10Texture2D
(
iface
);
struct
d3d10_texture2d
*
texture
=
impl_from_ID3D10Texture2D
(
iface
);
struct
wined3d_resource_desc
wined3d_desc
;
TRACE
(
"iface %p, desc %p
\n
"
,
iface
,
desc
);
*
desc
=
This
->
desc
;
*
desc
=
texture
->
desc
;
wined3d_mutex_lock
();
wined3d_resource_get_desc
(
wined3d_texture_get_resource
(
texture
->
wined3d_texture
),
&
wined3d_desc
);
wined3d_mutex_unlock
();
/* FIXME: Resizing swapchain buffers can cause these to change. We'd like
* to get everything from wined3d, but e.g. bind flags don't exist as such
* there (yet). */
desc
->
Width
=
wined3d_desc
.
width
;
desc
->
Height
=
wined3d_desc
.
height
;
desc
->
Format
=
dxgi_format_from_wined3dformat
(
wined3d_desc
.
format
);
desc
->
SampleDesc
.
Count
=
wined3d_desc
.
multisample_type
==
WINED3D_MULTISAMPLE_NONE
?
1
:
wined3d_desc
.
multisample_type
;
desc
->
SampleDesc
.
Quality
=
wined3d_desc
.
multisample_quality
;
}
static
const
struct
ID3D10Texture2DVtbl
d3d10_texture2d_vtbl
=
...
...
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