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
e409b83b
Commit
e409b83b
authored
Mar 14, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DVolumeTexture::Unmap().
parent
4c3d55f1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
33 deletions
+27
-33
texture.c
dlls/d3d10core/texture.c
+9
-3
volumetexture.c
dlls/d3d8/volumetexture.c
+9
-4
volumetexture.c
dlls/d3d9/volumetexture.c
+9
-6
volumetexture.c
dlls/wined3d/volumetexture.c
+0
-17
wined3d.idl
include/wine/wined3d.idl
+0
-3
No files found.
dlls/d3d10core/texture.c
View file @
e409b83b
...
...
@@ -375,11 +375,17 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture3d_Map(ID3D10Texture3D *iface, UIN
return
hr
;
}
static
void
STDMETHODCALLTYPE
d3d10_texture3d_Unmap
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
)
static
void
STDMETHODCALLTYPE
d3d10_texture3d_Unmap
(
ID3D10Texture3D
*
iface
,
UINT
sub_resource
_idx
)
{
TRACE
(
"iface %p, sub_resource %u.
\n
"
,
iface
,
sub_resource
);
struct
d3d10_texture3d
*
texture
=
(
struct
d3d10_texture3d
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
TRACE
(
"iface %p, sub_resource_idx %u.
\n
"
,
iface
,
sub_resource_idx
);
if
(
!
(
sub_resource
=
IWineD3DVolumeTexture_GetSubResource
(
texture
->
wined3d_texture
,
sub_resource_idx
)))
return
;
IWineD3DVolume
Texture_Unmap
(((
struct
d3d10_texture3d
*
)
iface
)
->
wined3d_texture
,
sub_resource
);
IWineD3DVolume
_Unmap
(
wined3d_volume_from_resource
(
sub_resource
)
);
}
static
void
STDMETHODCALLTYPE
d3d10_texture3d_GetDesc
(
ID3D10Texture3D
*
iface
,
D3D10_TEXTURE3D_DESC
*
desc
)
...
...
dlls/d3d8/volumetexture.c
View file @
e409b83b
...
...
@@ -298,14 +298,19 @@ static HRESULT WINAPI IDirect3DVolumeTexture8Impl_LockBox(IDirect3DVolumeTexture
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_UnlockBox
(
LPDIRECT3DVOLUMETEXTURE8
iface
,
UINT
Level
)
{
IDirect3DVolumeTexture8Impl
*
This
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
static
HRESULT
WINAPI
IDirect3DVolumeTexture8Impl_UnlockBox
(
IDirect3DVolumeTexture8
*
iface
,
UINT
level
)
{
IDirect3DVolumeTexture8Impl
*
texture
=
(
IDirect3DVolumeTexture8Impl
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
HRESULT
hr
;
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
L
evel
);
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
l
evel
);
wined3d_mutex_lock
();
hr
=
IWineD3DVolumeTexture_Unmap
(
This
->
wineD3DVolumeTexture
,
Level
);
if
(
!
(
sub_resource
=
IWineD3DVolumeTexture_GetSubResource
(
texture
->
wineD3DVolumeTexture
,
level
)))
hr
=
D3DERR_INVALIDCALL
;
else
hr
=
IDirect3DVolume8_UnlockBox
((
IDirect3DVolume8
*
)
wined3d_resource_get_parent
(
sub_resource
));
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/d3d9/volumetexture.c
View file @
e409b83b
...
...
@@ -360,16 +360,19 @@ static HRESULT WINAPI IDirect3DVolumeTexture9Impl_LockBox(IDirect3DVolumeTexture
return
hr
;
}
static
HRESULT
WINAPI
IDirect3DVolumeTexture9Impl_UnlockBox
(
LPDIRECT3DVOLUMETEXTURE9
iface
,
UINT
Level
)
{
IDirect3DVolumeTexture9Impl
*
This
=
(
IDirect3DVolumeTexture9Impl
*
)
iface
;
static
HRESULT
WINAPI
IDirect3DVolumeTexture9Impl_UnlockBox
(
IDirect3DVolumeTexture9
*
iface
,
UINT
level
)
{
IDirect3DVolumeTexture9Impl
*
texture
=
(
IDirect3DVolumeTexture9Impl
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
HRESULT
hr
;
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
L
evel
);
TRACE
(
"iface %p, level %u.
\n
"
,
iface
,
l
evel
);
wined3d_mutex_lock
();
hr
=
IWineD3DVolumeTexture_Unmap
(
This
->
wineD3DVolumeTexture
,
Level
);
if
(
!
(
sub_resource
=
IWineD3DVolumeTexture_GetSubResource
(
texture
->
wineD3DVolumeTexture
,
level
)))
hr
=
D3DERR_INVALIDCALL
;
else
hr
=
IDirect3DVolume9_UnlockBox
((
IDirect3DVolume9
*
)
wined3d_resource_get_parent
(
sub_resource
));
wined3d_mutex_unlock
();
return
hr
;
...
...
dlls/wined3d/volumetexture.c
View file @
e409b83b
...
...
@@ -273,22 +273,6 @@ static struct wined3d_resource * WINAPI IWineD3DVolumeTextureImpl_GetSubResource
return
basetexture_get_sub_resource
(
texture
,
sub_resource_idx
);
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_Unmap
(
IWineD3DVolumeTexture
*
iface
,
UINT
sub_resource_idx
)
{
IWineD3DBaseTextureImpl
*
texture
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
struct
wined3d_resource
*
sub_resource
;
TRACE
(
"iface %p, sub_resource_idx %u.
\n
"
,
iface
,
sub_resource_idx
);
if
(
!
(
sub_resource
=
basetexture_get_sub_resource
(
texture
,
sub_resource_idx
)))
{
WARN
(
"Failed to get sub-resource.
\n
"
);
return
WINED3DERR_INVALIDCALL
;
}
return
IWineD3DVolume_Unmap
((
IWineD3DVolume
*
)
volume_from_resource
(
sub_resource
));
}
static
HRESULT
WINAPI
IWineD3DVolumeTextureImpl_AddDirtyBox
(
IWineD3DVolumeTexture
*
iface
,
const
WINED3DBOX
*
dirty_box
)
{
IWineD3DBaseTextureImpl
*
texture
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
...
...
@@ -333,7 +317,6 @@ static const IWineD3DVolumeTextureVtbl IWineD3DVolumeTexture_Vtbl =
IWineD3DVolumeTextureImpl_IsCondNP2
,
IWineD3DVolumeTextureImpl_GetSubResource
,
/* volume texture */
IWineD3DVolumeTextureImpl_Unmap
,
IWineD3DVolumeTextureImpl_AddDirtyBox
};
...
...
include/wine/wined3d.idl
View file @
e409b83b
...
...
@@ -2395,9 +2395,6 @@ interface IWineD3DCubeTexture : IWineD3DBaseTexture
]
interface
IWineD3DVolumeTexture
:
IWineD3DBaseTexture
{
HRESULT
Unmap
(
[
in
]
UINT
sub_resource_idx
)
;
HRESULT
AddDirtyBox
(
[
in
]
const
WINED3DBOX
*
dirty_box
)
;
...
...
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