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
96fbf9fe
Commit
96fbf9fe
authored
Nov 18, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Surfaces always have a container in draw_textured_quad().
parent
941fe99e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
surface.c
dlls/wined3d/surface.c
+5
-8
No files found.
dlls/wined3d/surface.c
View file @
96fbf9fe
...
...
@@ -333,6 +333,7 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
enum
wined3d_texture_filter_type
filter
)
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
struct
wined3d_texture
*
texture
=
src_surface
->
container
;
struct
blt_info
info
;
surface_get_blt_info
(
src_surface
->
texture_target
,
src_rect
,
src_surface
->
pow2Width
,
src_surface
->
pow2Height
,
&
info
);
...
...
@@ -376,14 +377,10 @@ void draw_textured_quad(const struct wined3d_surface *src_surface, struct wined3
/* We changed the filtering settings on the texture. Inform the
* container about this to get the filters reset properly next draw. */
if
(
src_surface
->
container
)
{
struct
wined3d_texture
*
texture
=
src_surface
->
container
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MAGFILTER
]
=
WINED3D_TEXF_POINT
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MINFILTER
]
=
WINED3D_TEXF_POINT
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MIPFILTER
]
=
WINED3D_TEXF_NONE
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_SRGBTEXTURE
]
=
FALSE
;
}
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MAGFILTER
]
=
WINED3D_TEXF_POINT
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MINFILTER
]
=
WINED3D_TEXF_POINT
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_MIPFILTER
]
=
WINED3D_TEXF_NONE
;
texture
->
texture_rgb
.
states
[
WINED3DTEXSTA_SRGBTEXTURE
]
=
FALSE
;
}
/* Works correctly only for <= 4 bpp formats. */
...
...
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