Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
482a5fd0
Commit
482a5fd0
authored
Jan 02, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass an IWineD3DBaseTextureImpl pointer to basetexture_set_lod().
parent
fa973b81
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+21
-22
basetexture.c
dlls/wined3d/basetexture.c
+17
-18
cubetexture.c
dlls/wined3d/cubetexture.c
+1
-1
texture.c
dlls/wined3d/texture.c
+1
-1
volumetexture.c
dlls/wined3d/volumetexture.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/basetexture.c
View file @
482a5fd0
...
...
@@ -127,34 +127,33 @@ void basetexture_unload(IWineD3DBaseTextureImpl *texture)
resource_unload
((
IWineD3DResourceImpl
*
)
texture
);
}
DWORD
basetexture_set_lod
(
IWineD3DBaseTexture
*
iface
,
DWORD
LODNew
)
DWORD
basetexture_set_lod
(
IWineD3DBaseTexture
Impl
*
texture
,
DWORD
lod
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
DWORD
old
=
This
->
baseTexture
.
LOD
;
DWORD
old
=
texture
->
baseTexture
.
LOD
;
TRACE
(
"texture %p, lod %u.
\n
"
,
texture
,
lod
);
/* The d3d9:texture test shows that SetLOD is ignored on non-managed
* textures. The call always returns 0, and GetLOD always returns 0
*/
if
(
This
->
resource
.
pool
!=
WINED3DPOOL_MANAGED
)
{
TRACE
(
"Ignoring SetLOD on %s texture, returning 0
\n
"
,
debug_d3dpool
(
This
->
resource
.
pool
));
* textures. The call always returns 0, and GetLOD always returns 0
. */
if
(
texture
->
resource
.
pool
!=
WINED3DPOOL_MANAGED
)
{
TRACE
(
"Ignoring SetLOD on %s texture, returning 0
.
\n
"
,
debug_d3dpool
(
texture
->
resource
.
pool
));
return
0
;
}
if
(
LODNew
>=
This
->
baseTexture
.
level_count
)
LODNew
=
This
->
baseTexture
.
level_count
-
1
;
if
(
lod
>=
texture
->
baseTexture
.
level_count
)
lod
=
texture
->
baseTexture
.
level_count
-
1
;
if
(
This
->
baseTexture
.
LOD
!=
LODNew
)
{
This
->
baseTexture
.
LOD
=
LODNew
;
if
(
texture
->
baseTexture
.
LOD
!=
lod
)
{
texture
->
baseTexture
.
LOD
=
lod
;
This
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MAXMIPLEVEL
]
=
~
0U
;
This
->
baseTexture
.
texture_srgb
.
states
[
WINED3DTEXSTA_MAXMIPLEVEL
]
=
~
0U
;
if
(
This
->
baseTexture
.
bindCount
)
{
IWineD3DDeviceImpl_MarkStateDirty
(
This
->
resource
.
device
,
STATE_SAMPLER
(
This
->
baseTexture
.
sampler
));
}
texture
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MAXMIPLEVEL
]
=
~
0U
;
texture
->
baseTexture
.
texture_srgb
.
states
[
WINED3DTEXSTA_MAXMIPLEVEL
]
=
~
0U
;
if
(
texture
->
baseTexture
.
bindCount
)
IWineD3DDeviceImpl_MarkStateDirty
(
texture
->
resource
.
device
,
STATE_SAMPLER
(
texture
->
baseTexture
.
sampler
));
}
TRACE
(
"(%p) : set LOD to %d
\n
"
,
This
,
This
->
baseTexture
.
LOD
);
return
old
;
}
...
...
dlls/wined3d/cubetexture.c
View file @
482a5fd0
...
...
@@ -247,7 +247,7 @@ static void * WINAPI IWineD3DCubeTextureImpl_GetParent(IWineD3DCubeTexture *ifac
IWineD3DCubeTexture IWineD3DBaseTexture parts follow
****************************************************** */
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_SetLOD
(
IWineD3DCubeTexture
*
iface
,
DWORD
LODNew
)
{
return
basetexture_set_lod
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
basetexture_set_lod
((
IWineD3DBaseTexture
Impl
*
)
iface
,
LODNew
);
}
static
DWORD
WINAPI
IWineD3DCubeTextureImpl_GetLOD
(
IWineD3DCubeTexture
*
iface
)
{
...
...
dlls/wined3d/texture.c
View file @
482a5fd0
...
...
@@ -238,7 +238,7 @@ static void * WINAPI IWineD3DTextureImpl_GetParent(IWineD3DTexture *iface)
IWineD3DTexture IWineD3DBaseTexture parts follow
****************************************************** */
static
DWORD
WINAPI
IWineD3DTextureImpl_SetLOD
(
IWineD3DTexture
*
iface
,
DWORD
LODNew
)
{
return
basetexture_set_lod
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
basetexture_set_lod
((
IWineD3DBaseTexture
Impl
*
)
iface
,
LODNew
);
}
static
DWORD
WINAPI
IWineD3DTextureImpl_GetLOD
(
IWineD3DTexture
*
iface
)
{
...
...
dlls/wined3d/volumetexture.c
View file @
482a5fd0
...
...
@@ -202,7 +202,7 @@ static void * WINAPI IWineD3DVolumeTextureImpl_GetParent(IWineD3DVolumeTexture *
IWineD3DVolumeTexture IWineD3DBaseTexture parts follow
****************************************************** */
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_SetLOD
(
IWineD3DVolumeTexture
*
iface
,
DWORD
LODNew
)
{
return
basetexture_set_lod
((
IWineD3DBaseTexture
*
)
iface
,
LODNew
);
return
basetexture_set_lod
((
IWineD3DBaseTexture
Impl
*
)
iface
,
LODNew
);
}
static
DWORD
WINAPI
IWineD3DVolumeTextureImpl_GetLOD
(
IWineD3DVolumeTexture
*
iface
)
{
...
...
dlls/wined3d/wined3d_private.h
View file @
482a5fd0
...
...
@@ -1927,7 +1927,7 @@ HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT layer_count, UIN
HRESULT
basetexture_set_autogen_filter_type
(
IWineD3DBaseTexture
*
iface
,
WINED3DTEXTUREFILTERTYPE
filter_type
)
DECLSPEC_HIDDEN
;
BOOL
basetexture_set_dirty
(
IWineD3DBaseTextureImpl
*
texture
,
BOOL
dirty
)
DECLSPEC_HIDDEN
;
DWORD
basetexture_set_lod
(
IWineD3DBaseTexture
*
iface
,
DWORD
new_
lod
)
DECLSPEC_HIDDEN
;
DWORD
basetexture_set_lod
(
IWineD3DBaseTexture
Impl
*
texture
,
DWORD
lod
)
DECLSPEC_HIDDEN
;
void
basetexture_unload
(
IWineD3DBaseTextureImpl
*
texture
)
DECLSPEC_HIDDEN
;
/*****************************************************************************
...
...
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