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
f6e4f4a1
Commit
f6e4f4a1
authored
Apr 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the mipmap hint code.
Mipmap hint isn't a texture parameter, but a global hint. This never worked, it just causes GL errors.
parent
f296fe68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
34 deletions
+1
-34
texture.c
dlls/wined3d/texture.c
+1
-34
No files found.
dlls/wined3d/texture.c
View file @
f6e4f4a1
...
...
@@ -544,7 +544,7 @@ DWORD CDECL wined3d_texture_get_level_count(const struct wined3d_texture *textur
HRESULT
CDECL
wined3d_texture_set_autogen_filter_type
(
struct
wined3d_texture
*
texture
,
WINED3DTEXTUREFILTERTYPE
filter_type
)
{
TRACE
(
"texture %p, filter_type %s.
\n
"
,
texture
,
debug_d3dtexturefiltertype
(
filter_type
));
FIXME
(
"texture %p, filter_type %s stub!
\n
"
,
texture
,
debug_d3dtexturefiltertype
(
filter_type
));
if
(
!
(
texture
->
resource
.
usage
&
WINED3DUSAGE_AUTOGENMIPMAP
))
{
...
...
@@ -552,39 +552,6 @@ HRESULT CDECL wined3d_texture_set_autogen_filter_type(struct wined3d_texture *te
return
WINED3DERR_INVALIDCALL
;
}
if
(
texture
->
filter_type
!=
filter_type
)
{
GLenum
target
=
texture
->
target
;
struct
wined3d_context
*
context
;
context
=
context_acquire
(
texture
->
resource
.
device
,
NULL
);
ENTER_GL
();
glBindTexture
(
target
,
texture
->
texture_rgb
.
name
);
checkGLcall
(
"glBindTexture"
);
switch
(
filter_type
)
{
case
WINED3DTEXF_NONE
:
case
WINED3DTEXF_POINT
:
glTexParameteri
(
target
,
GL_GENERATE_MIPMAP_HINT_SGIS
,
GL_FASTEST
);
checkGLcall
(
"glTexParameteri(target, GL_GENERATE_MIPMAP_HINT_SGIS, GL_FASTEST)"
);
break
;
case
WINED3DTEXF_LINEAR
:
glTexParameteri
(
target
,
GL_GENERATE_MIPMAP_HINT_SGIS
,
GL_NICEST
);
checkGLcall
(
"glTexParameteri(target, GL_GENERATE_MIPMAP_HINT_SGIS, GL_NICEST)"
);
break
;
default:
WARN
(
"Unexpected filter type %#x, setting to GL_NICEST.
\n
"
,
filter_type
);
glTexParameteri
(
target
,
GL_GENERATE_MIPMAP_HINT_SGIS
,
GL_NICEST
);
checkGLcall
(
"glTexParameteri(target, GL_GENERATE_MIPMAP_HINT_SGIS, GL_NICEST)"
);
break
;
}
LEAVE_GL
();
context_release
(
context
);
}
texture
->
filter_type
=
filter_type
;
return
WINED3D_OK
;
...
...
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