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
09b4ed2e
Commit
09b4ed2e
authored
Mar 16, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of IWineD3DBaseTexture::IsCondNP2().
parent
2d4bce87
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2 additions
and
29 deletions
+2
-29
basetexture.c
dlls/wined3d/basetexture.c
+1
-1
cubetexture.c
dlls/wined3d/cubetexture.c
+0
-8
texture.c
dlls/wined3d/texture.c
+1
-10
volumetexture.c
dlls/wined3d/volumetexture.c
+0
-8
wined3d.idl
include/wine/wined3d.idl
+0
-2
No files found.
dlls/wined3d/basetexture.c
View file @
09b4ed2e
...
@@ -371,7 +371,7 @@ void basetexture_apply_state_changes(IWineD3DBaseTextureImpl *texture,
...
@@ -371,7 +371,7 @@ void basetexture_apply_state_changes(IWineD3DBaseTextureImpl *texture,
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
],
const
DWORD
samplerStates
[
WINED3D_HIGHEST_SAMPLER_STATE
+
1
],
const
struct
wined3d_gl_info
*
gl_info
)
const
struct
wined3d_gl_info
*
gl_info
)
{
{
BOOL
cond_np2
=
IWineD3DBaseTexture_IsCondNP2
((
IWineD3DBaseTexture
*
)
texture
)
;
BOOL
cond_np2
=
texture
->
baseTexture
.
cond_np2
;
GLenum
textureDimensions
=
texture
->
baseTexture
.
target
;
GLenum
textureDimensions
=
texture
->
baseTexture
.
target
;
DWORD
state
;
DWORD
state
;
DWORD
aniso
;
DWORD
aniso
;
...
...
dlls/wined3d/cubetexture.c
View file @
09b4ed2e
...
@@ -319,13 +319,6 @@ static void WINAPI IWineD3DCubeTextureImpl_GenerateMipSubLevels(IWineD3DCubeText
...
@@ -319,13 +319,6 @@ static void WINAPI IWineD3DCubeTextureImpl_GenerateMipSubLevels(IWineD3DCubeText
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
}
}
static
BOOL
WINAPI
IWineD3DCubeTextureImpl_IsCondNP2
(
IWineD3DCubeTexture
*
iface
)
{
TRACE
(
"iface %p.
\n
"
,
iface
);
return
FALSE
;
}
static
struct
wined3d_resource
*
WINAPI
IWineD3DCubeTextureImpl_GetSubResource
(
IWineD3DCubeTexture
*
iface
,
static
struct
wined3d_resource
*
WINAPI
IWineD3DCubeTextureImpl_GetSubResource
(
IWineD3DCubeTexture
*
iface
,
UINT
sub_resource_idx
)
UINT
sub_resource_idx
)
{
{
...
@@ -378,7 +371,6 @@ static const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl =
...
@@ -378,7 +371,6 @@ static const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl =
IWineD3DCubeTextureImpl_SetAutoGenFilterType
,
IWineD3DCubeTextureImpl_SetAutoGenFilterType
,
IWineD3DCubeTextureImpl_GetAutoGenFilterType
,
IWineD3DCubeTextureImpl_GetAutoGenFilterType
,
IWineD3DCubeTextureImpl_GenerateMipSubLevels
,
IWineD3DCubeTextureImpl_GenerateMipSubLevels
,
IWineD3DCubeTextureImpl_IsCondNP2
,
IWineD3DCubeTextureImpl_GetSubResource
,
IWineD3DCubeTextureImpl_GetSubResource
,
IWineD3DCubeTextureImpl_AddDirtyRegion
,
IWineD3DCubeTextureImpl_AddDirtyRegion
,
};
};
...
...
dlls/wined3d/texture.c
View file @
09b4ed2e
...
@@ -57,7 +57,7 @@ static HRESULT texture_bind(IWineD3DBaseTextureImpl *texture,
...
@@ -57,7 +57,7 @@ static HRESULT texture_bind(IWineD3DBaseTextureImpl *texture,
* state. The same applies to filtering. Even if the texture has only
* state. The same applies to filtering. Even if the texture has only
* one mip level, the default LINEAR_MIPMAP_LINEAR filter causes a SW
* one mip level, the default LINEAR_MIPMAP_LINEAR filter causes a SW
* fallback on macos. */
* fallback on macos. */
if
(
IWineD3DBaseTexture_IsCondNP2
((
IWineD3DBaseTexture
*
)
texture
)
)
if
(
texture
->
baseTexture
.
cond_np2
)
{
{
GLenum
target
=
texture
->
baseTexture
.
target
;
GLenum
target
=
texture
->
baseTexture
.
target
;
...
@@ -335,14 +335,6 @@ static void WINAPI IWineD3DTextureImpl_GenerateMipSubLevels(IWineD3DBaseTexture
...
@@ -335,14 +335,6 @@ static void WINAPI IWineD3DTextureImpl_GenerateMipSubLevels(IWineD3DBaseTexture
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
}
}
static
BOOL
WINAPI
IWineD3DTextureImpl_IsCondNP2
(
IWineD3DBaseTexture
*
iface
)
{
IWineD3DBaseTextureImpl
*
This
=
(
IWineD3DBaseTextureImpl
*
)
iface
;
TRACE
(
"(%p)
\n
"
,
This
);
return
This
->
baseTexture
.
cond_np2
;
}
static
struct
wined3d_resource
*
WINAPI
IWineD3DTextureImpl_GetSubResource
(
IWineD3DBaseTexture
*
iface
,
static
struct
wined3d_resource
*
WINAPI
IWineD3DTextureImpl_GetSubResource
(
IWineD3DBaseTexture
*
iface
,
UINT
sub_resource_idx
)
UINT
sub_resource_idx
)
{
{
...
@@ -395,7 +387,6 @@ static const IWineD3DBaseTextureVtbl IWineD3DTexture_Vtbl =
...
@@ -395,7 +387,6 @@ static const IWineD3DBaseTextureVtbl IWineD3DTexture_Vtbl =
IWineD3DTextureImpl_SetAutoGenFilterType
,
IWineD3DTextureImpl_SetAutoGenFilterType
,
IWineD3DTextureImpl_GetAutoGenFilterType
,
IWineD3DTextureImpl_GetAutoGenFilterType
,
IWineD3DTextureImpl_GenerateMipSubLevels
,
IWineD3DTextureImpl_GenerateMipSubLevels
,
IWineD3DTextureImpl_IsCondNP2
,
IWineD3DTextureImpl_GetSubResource
,
IWineD3DTextureImpl_GetSubResource
,
IWineD3DTextureImpl_AddDirtyRegion
,
IWineD3DTextureImpl_AddDirtyRegion
,
};
};
...
...
dlls/wined3d/volumetexture.c
View file @
09b4ed2e
...
@@ -252,13 +252,6 @@ static void WINAPI IWineD3DVolumeTextureImpl_GenerateMipSubLevels(IWineD3DBaseTe
...
@@ -252,13 +252,6 @@ static void WINAPI IWineD3DVolumeTextureImpl_GenerateMipSubLevels(IWineD3DBaseTe
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
basetexture_generate_mipmaps
((
IWineD3DBaseTextureImpl
*
)
iface
);
}
}
static
BOOL
WINAPI
IWineD3DVolumeTextureImpl_IsCondNP2
(
IWineD3DBaseTexture
*
iface
)
{
TRACE
(
"iface %p.
\n
"
,
iface
);
return
FALSE
;
}
static
struct
wined3d_resource
*
WINAPI
IWineD3DVolumeTextureImpl_GetSubResource
(
IWineD3DBaseTexture
*
iface
,
static
struct
wined3d_resource
*
WINAPI
IWineD3DVolumeTextureImpl_GetSubResource
(
IWineD3DBaseTexture
*
iface
,
UINT
sub_resource_idx
)
UINT
sub_resource_idx
)
{
{
...
@@ -311,7 +304,6 @@ static const IWineD3DBaseTextureVtbl IWineD3DVolumeTexture_Vtbl =
...
@@ -311,7 +304,6 @@ static const IWineD3DBaseTextureVtbl IWineD3DVolumeTexture_Vtbl =
IWineD3DVolumeTextureImpl_SetAutoGenFilterType
,
IWineD3DVolumeTextureImpl_SetAutoGenFilterType
,
IWineD3DVolumeTextureImpl_GetAutoGenFilterType
,
IWineD3DVolumeTextureImpl_GetAutoGenFilterType
,
IWineD3DVolumeTextureImpl_GenerateMipSubLevels
,
IWineD3DVolumeTextureImpl_GenerateMipSubLevels
,
IWineD3DVolumeTextureImpl_IsCondNP2
,
IWineD3DVolumeTextureImpl_GetSubResource
,
IWineD3DVolumeTextureImpl_GetSubResource
,
IWineD3DVolumeTextureImpl_AddDirtyRegion
,
IWineD3DVolumeTextureImpl_AddDirtyRegion
,
};
};
...
...
include/wine/wined3d.idl
View file @
09b4ed2e
...
@@ -2356,8 +2356,6 @@ interface IWineD3DBaseTexture : IWineD3DResource
...
@@ -2356,8 +2356,6 @@ interface IWineD3DBaseTexture : IWineD3DResource
)
;
)
;
void
GenerateMipSubLevels
(
void
GenerateMipSubLevels
(
)
;
)
;
BOOL
IsCondNP2
(
)
;
struct
wined3d_resource
*
GetSubResource
(
struct
wined3d_resource
*
GetSubResource
(
[
in
]
UINT
sub_resource_idx
[
in
]
UINT
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