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
c03d367d
Commit
c03d367d
authored
Jan 28, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Jan 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of an unnecessary GetContainer() call in surface_blt_to_drawable().
parent
d66f5345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
17 deletions
+8
-17
surface.c
dlls/wined3d/surface.c
+8
-17
No files found.
dlls/wined3d/surface.c
View file @
c03d367d
...
...
@@ -4665,11 +4665,10 @@ static inline void cube_coords_float(const RECT *r, UINT w, UINT h, struct float
static
inline
void
surface_blt_to_drawable
(
IWineD3DSurfaceImpl
*
This
,
const
RECT
*
rect_in
)
{
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
device
;
IWineD3DBaseTextureImpl
*
texture
;
struct
wined3d_context
*
context
;
struct
coords
coords
[
4
];
RECT
rect
;
IWineD3DSwapChain
*
swapchain
;
IWineD3DBaseTexture
*
texture
;
GLenum
bind_target
;
struct
float_rect
f
;
...
...
@@ -4813,22 +4812,14 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
wglFlush
();
/* Flush to ensure ordering across contexts. */
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)))
{
IWineD3DSwapChain_Release
(
swapchain
);
}
else
/* We changed the filtering settings on the texture. Inform the
* container about this to get the filters reset properly next draw. */
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DBaseTexture
,
(
void
**
)
&
texture
)))
{
/* We changed the filtering settings on the texture. Inform the container about this to get the filters
* reset properly next draw
*/
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
This
,
&
IID_IWineD3DBaseTexture
,
(
void
**
)
&
texture
)))
{
((
IWineD3DBaseTextureImpl
*
)
texture
)
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MAGFILTER
]
=
WINED3DTEXF_POINT
;
((
IWineD3DBaseTextureImpl
*
)
texture
)
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MINFILTER
]
=
WINED3DTEXF_POINT
;
((
IWineD3DBaseTextureImpl
*
)
texture
)
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MIPFILTER
]
=
WINED3DTEXF_NONE
;
IWineD3DBaseTexture_Release
(
texture
);
}
texture
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MAGFILTER
]
=
WINED3DTEXF_POINT
;
texture
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MINFILTER
]
=
WINED3DTEXF_POINT
;
texture
->
baseTexture
.
texture_rgb
.
states
[
WINED3DTEXSTA_MIPFILTER
]
=
WINED3DTEXF_NONE
;
IWineD3DBaseTexture_Release
((
IWineD3DBaseTexture
*
)
texture
);
}
context_release
(
context
);
...
...
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