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
eeea2af5
Commit
eeea2af5
authored
Oct 06, 2015
by
Riccardo Bortolato
Committed by
Alexandre Julliard
Oct 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Don't use a wined3d_volume in d3d8_volume_GetDesc.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
parent
d49ad6c6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
d3d8_private.h
dlls/d3d8/d3d8_private.h
+1
-2
device.c
dlls/d3d8/device.c
+1
-1
volume.c
dlls/d3d8/volume.c
+4
-5
No files found.
dlls/d3d8/d3d8_private.h
View file @
eeea2af5
...
...
@@ -206,12 +206,11 @@ struct d3d8_volume
struct
d3d8_resource
resource
;
struct
wined3d_texture
*
wined3d_texture
;
unsigned
int
sub_resource_idx
;
struct
wined3d_volume
*
wined3d_volume
;
struct
d3d8_texture
*
texture
;
};
void
volume_init
(
struct
d3d8_volume
*
volume
,
struct
wined3d_texture
*
wined3d_texture
,
unsigned
int
sub_resource_idx
,
struct
wined3d_volume
*
wined3d_volume
,
const
struct
wined3d_parent_ops
**
parent_ops
)
DECLSPEC_HIDDEN
;
unsigned
int
sub_resource_idx
,
const
struct
wined3d_parent_ops
**
parent_ops
)
DECLSPEC_HIDDEN
;
struct
d3d8_swapchain
{
...
...
dlls/d3d8/device.c
View file @
eeea2af5
...
...
@@ -3029,7 +3029,7 @@ static HRESULT CDECL device_parent_volume_created(struct wined3d_device_parent *
if
(
!
(
d3d_volume
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
d3d_volume
))))
return
E_OUTOFMEMORY
;
volume_init
(
d3d_volume
,
wined3d_texture
,
sub_resource_idx
,
volume
,
parent_ops
);
volume_init
(
d3d_volume
,
wined3d_texture
,
sub_resource_idx
,
parent_ops
);
*
parent
=
d3d_volume
;
TRACE
(
"Created volume %p.
\n
"
,
d3d_volume
);
...
...
dlls/d3d8/volume.c
View file @
eeea2af5
...
...
@@ -116,13 +116,13 @@ static HRESULT WINAPI d3d8_volume_GetDesc(IDirect3DVolume8 *iface, D3DVOLUME_DES
{
struct
d3d8_volume
*
volume
=
impl_from_IDirect3DVolume8
(
iface
);
struct
wined3d_resource_desc
wined3d_desc
;
struct
wined3d_resource
*
wined3d
_resource
;
struct
wined3d_resource
*
sub
_resource
;
TRACE
(
"iface %p, desc %p.
\n
"
,
iface
,
desc
);
wined3d_mutex_lock
();
wined3d_resource
=
wined3d_volume_get_resource
(
volume
->
wined3d_volume
);
wined3d_resource_get_desc
(
wined3d
_resource
,
&
wined3d_desc
);
sub_resource
=
wined3d_texture_get_sub_resource
(
volume
->
wined3d_texture
,
volume
->
sub_resource_idx
);
wined3d_resource_get_desc
(
sub
_resource
,
&
wined3d_desc
);
wined3d_mutex_unlock
();
desc
->
Format
=
d3dformat_from_wined3dformat
(
wined3d_desc
.
format
);
...
...
@@ -203,12 +203,11 @@ static const struct wined3d_parent_ops d3d8_volume_wined3d_parent_ops =
};
void
volume_init
(
struct
d3d8_volume
*
volume
,
struct
wined3d_texture
*
wined3d_texture
,
unsigned
int
sub_resource_idx
,
struct
wined3d_volume
*
wined3d_volume
,
const
struct
wined3d_parent_ops
**
parent_ops
)
unsigned
int
sub_resource_idx
,
const
struct
wined3d_parent_ops
**
parent_ops
)
{
volume
->
IDirect3DVolume8_iface
.
lpVtbl
=
&
d3d8_volume_vtbl
;
d3d8_resource_init
(
&
volume
->
resource
);
volume
->
resource
.
refcount
=
0
;
volume
->
wined3d_volume
=
wined3d_volume
;
volume
->
texture
=
wined3d_texture_get_parent
(
wined3d_texture
);
volume
->
wined3d_texture
=
wined3d_texture
;
volume
->
sub_resource_idx
=
sub_resource_idx
;
...
...
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