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
a86f3165
Commit
a86f3165
authored
Aug 05, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move texture filter lookup table initialization to basetexture_init().
parent
351d6de8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
33 deletions
+11
-33
basetexture.c
dlls/wined3d/basetexture.c
+11
-0
cubetexture.c
dlls/wined3d/cubetexture.c
+0
-11
texture.c
dlls/wined3d/texture.c
+0
-11
volumetexture.c
dlls/wined3d/volumetexture.c
+0
-11
No files found.
dlls/wined3d/basetexture.c
View file @
a86f3165
...
...
@@ -48,6 +48,17 @@ HRESULT basetexture_init(IWineD3DBaseTextureImpl *texture, UINT levels, WINED3DR
texture
->
baseTexture
.
is_srgb
=
FALSE
;
texture
->
baseTexture
.
pow2Matrix_identity
=
TRUE
;
if
(
texture
->
resource
.
format_desc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup
;
texture
->
baseTexture
.
magLookup
=
magLookup
;
}
else
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
texture
->
baseTexture
.
magLookup
=
magLookup_noFilter
;
}
return
WINED3D_OK
;
}
...
...
dlls/wined3d/cubetexture.c
View file @
a86f3165
...
...
@@ -192,17 +192,6 @@ HRESULT cubetexture_init(IWineD3DCubeTextureImpl *texture, UINT edge_length, UIN
return
hr
;
}
if
(
texture
->
resource
.
format_desc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup
;
texture
->
baseTexture
.
magLookup
=
magLookup
;
}
else
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
texture
->
baseTexture
.
magLookup
=
magLookup_noFilter
;
}
/* Find the nearest pow2 match. */
pow2_edge_length
=
1
;
while
(
pow2_edge_length
<
edge_length
)
pow2_edge_length
<<=
1
;
...
...
dlls/wined3d/texture.c
View file @
a86f3165
...
...
@@ -197,17 +197,6 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
return
hr
;
}
if
(
texture
->
resource
.
format_desc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup
;
texture
->
baseTexture
.
magLookup
=
magLookup
;
}
else
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
texture
->
baseTexture
.
magLookup
=
magLookup_noFilter
;
}
/* Precalculated scaling for 'faked' non power of two texture coords.
* Second also don't use ARB_TEXTURE_RECTANGLE in case the surface format is P8 and EXT_PALETTED_TEXTURE
* is used in combination with texture uploads (RTL_READTEX/RTL_TEXTEX). The reason is that EXT_PALETTED_TEXTURE
...
...
dlls/wined3d/volumetexture.c
View file @
a86f3165
...
...
@@ -150,17 +150,6 @@ HRESULT volumetexture_init(IWineD3DVolumeTextureImpl *texture, UINT width, UINT
return
hr
;
}
if
(
texture
->
resource
.
format_desc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup
;
texture
->
baseTexture
.
magLookup
=
magLookup
;
}
else
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
texture
->
baseTexture
.
magLookup
=
magLookup_noFilter
;
}
/* Is NP2 support for volumes needed? */
texture
->
baseTexture
.
pow2Matrix
[
0
]
=
1
.
0
f
;
texture
->
baseTexture
.
pow2Matrix
[
5
]
=
1
.
0
f
;
...
...
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