Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
531ec226
Commit
531ec226
authored
Aug 30, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Allow filtering on RECT textures.
There is no reason to disable linear filtering, we just cannot use mipmapping.
parent
52d28655
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
directx.c
dlls/wined3d/directx.c
+8
-0
texture.c
dlls/wined3d/texture.c
+9
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/directx.c
View file @
531ec226
...
...
@@ -185,6 +185,14 @@ const struct min_lookup minMipLookup_noFilter[] =
{{
GL_NEAREST
,
GL_NEAREST
,
GL_NEAREST
}},
/* LINEAR */
};
const
struct
min_lookup
minMipLookup_noMip
[]
=
{
/* NONE POINT LINEAR */
{{
GL_NEAREST
,
GL_NEAREST
,
GL_NEAREST
}},
/* NONE */
{{
GL_NEAREST
,
GL_NEAREST
,
GL_NEAREST
}},
/* POINT */
{{
GL_LINEAR
,
GL_LINEAR
,
GL_LINEAR
}},
/* LINEAR */
};
const
GLenum
magLookup
[]
=
{
/* NONE POINT LINEAR */
...
...
dlls/wined3d/texture.c
View file @
531ec226
...
...
@@ -223,7 +223,15 @@ HRESULT texture_init(IWineD3DTextureImpl *texture, UINT width, UINT height, UINT
texture
->
baseTexture
.
pow2Matrix
[
15
]
=
1
.
0
f
;
texture
->
target
=
GL_TEXTURE_RECTANGLE_ARB
;
texture
->
cond_np2
=
TRUE
;
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
if
(
texture
->
resource
.
format_desc
->
Flags
&
WINED3DFMT_FLAG_FILTERING
)
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noMip
;
}
else
{
texture
->
baseTexture
.
minMipLookup
=
minMipLookup_noFilter
;
}
}
else
{
...
...
dlls/wined3d/wined3d_private.h
View file @
531ec226
...
...
@@ -178,6 +178,7 @@ struct min_lookup
const
struct
min_lookup
minMipLookup
[
WINED3DTEXF_LINEAR
+
1
];
const
struct
min_lookup
minMipLookup_noFilter
[
WINED3DTEXF_LINEAR
+
1
];
const
struct
min_lookup
minMipLookup_noMip
[
WINED3DTEXF_LINEAR
+
1
];
const
GLenum
magLookup
[
WINED3DTEXF_LINEAR
+
1
];
const
GLenum
magLookup_noFilter
[
WINED3DTEXF_LINEAR
+
1
];
...
...
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