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
928110e5
Commit
928110e5
authored
Mar 26, 2017
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 27, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use blit_shader.blit_surface() in swapchain_blit().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7e32226a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
swapchain.c
dlls/wined3d/swapchain.c
+3
-12
No files found.
dlls/wined3d/swapchain.c
View file @
928110e5
...
...
@@ -368,23 +368,14 @@ static void swapchain_blit(const struct wined3d_swapchain *swapchain,
{
struct
wined3d_device
*
device
=
swapchain
->
device
;
struct
wined3d_context
*
context2
;
RECT
r
;
context2
=
context_acquire
(
device
,
texture
,
0
);
context_apply_blit_state
(
context2
,
device
);
r
=
*
dst_rect
;
surface_translate_drawable_coords
(
back_buffer
,
swapchain
->
win_handle
,
&
r
);
if
(
is_complex_fixup
(
texture
->
resource
.
format
->
color_fixup
))
filter
=
WINED3D_TEXF_NONE
;
context_apply_fbo_state_blit
(
context2
,
GL_FRAMEBUFFER
,
back_buffer
,
NULL
,
WINED3D_LOCATION_DRAWABLE
);
context_set_draw_buffer
(
context
,
GL_BACK
);
context2
=
context_acquire
(
device
,
texture
,
0
);
device
->
blitter
->
set_shader
(
device
->
blit_priv
,
context2
,
back_buffer
,
NULL
);
draw_textured_quad
(
back_buffer
,
context2
,
src_rect
,
&
r
,
filter
);
device
->
blitter
->
unset_shader
(
context
->
gl_info
);
device
->
blitter
->
blit_surface
(
device
,
WINED3D_BLIT_OP_COLOR_BLIT
,
context2
,
back_buffer
,
src_rect
,
back_buffer
,
WINED3D_LOCATION_DRAWABLE
,
dst_rect
,
NULL
,
filter
);
checkGLcall
(
"Swapchain present blit(manual)
\n
"
);
context_release
(
context2
);
...
...
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