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
c866eab7
Commit
c866eab7
authored
Jun 05, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Just return the resource type in IDirect3DResource8::GetType() implementations.
There's no need to ask wined3d, since it's constant for a given implementation.
parent
84ce0020
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
24 deletions
+3
-24
cubetexture.c
dlls/d3d8/cubetexture.c
+1
-8
texture.c
dlls/d3d8/texture.c
+1
-8
volumetexture.c
dlls/d3d8/volumetexture.c
+1
-8
No files found.
dlls/d3d8/cubetexture.c
View file @
c866eab7
...
...
@@ -194,16 +194,9 @@ static void WINAPI IDirect3DCubeTexture8Impl_PreLoad(IDirect3DCubeTexture8 *ifac
static
D3DRESOURCETYPE
WINAPI
IDirect3DCubeTexture8Impl_GetType
(
IDirect3DCubeTexture8
*
iface
)
{
IDirect3DCubeTexture8Impl
*
This
=
impl_from_IDirect3DCubeTexture8
(
iface
);
D3DRESOURCETYPE
type
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
type
=
wined3d_texture_get_type
(
This
->
wined3d_texture
);
wined3d_mutex_unlock
();
return
type
;
return
D3DRTYPE_CUBETEXTURE
;
}
/* IDirect3DCubeTexture8 IDirect3DBaseTexture8 Interface follow: */
...
...
dlls/d3d8/texture.c
View file @
c866eab7
...
...
@@ -192,16 +192,9 @@ static void WINAPI IDirect3DTexture8Impl_PreLoad(IDirect3DTexture8 *iface)
static
D3DRESOURCETYPE
WINAPI
IDirect3DTexture8Impl_GetType
(
IDirect3DTexture8
*
iface
)
{
IDirect3DTexture8Impl
*
This
=
impl_from_IDirect3DTexture8
(
iface
);
D3DRESOURCETYPE
type
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
type
=
wined3d_texture_get_type
(
This
->
wined3d_texture
);
wined3d_mutex_unlock
();
return
type
;
return
D3DRTYPE_TEXTURE
;
}
/* IDirect3DTexture8 IDirect3DBaseTexture8 Interface follow: */
...
...
dlls/d3d8/volumetexture.c
View file @
c866eab7
...
...
@@ -192,16 +192,9 @@ static void WINAPI IDirect3DVolumeTexture8Impl_PreLoad(IDirect3DVolumeTexture8 *
static
D3DRESOURCETYPE
WINAPI
IDirect3DVolumeTexture8Impl_GetType
(
IDirect3DVolumeTexture8
*
iface
)
{
IDirect3DVolumeTexture8Impl
*
This
=
impl_from_IDirect3DVolumeTexture8
(
iface
);
D3DRESOURCETYPE
type
;
TRACE
(
"iface %p.
\n
"
,
iface
);
wined3d_mutex_lock
();
type
=
wined3d_texture_get_type
(
This
->
wined3d_texture
);
wined3d_mutex_unlock
();
return
type
;
return
D3DRTYPE_VOLUMETEXTURE
;
}
/* IDirect3DVolumeTexture8 IDirect3DBaseTexture8 Interface follow: */
...
...
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