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
4bae47cf
Commit
4bae47cf
authored
May 26, 2020
by
Henri Verbeet
Committed by
Alexandre Julliard
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the swapchain logo texture blit to wined3d_cs_exec_present().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84857d27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
cs.c
dlls/wined3d/cs.c
+11
-0
swapchain.c
dlls/wined3d/swapchain.c
+1
-10
No files found.
dlls/wined3d/cs.c
View file @
4bae47cf
...
...
@@ -521,13 +521,24 @@ static void wined3d_cs_exec_nop(struct wined3d_cs *cs, const void *data)
static
void
wined3d_cs_exec_present
(
struct
wined3d_cs
*
cs
,
const
void
*
data
)
{
struct
wined3d_texture
*
logo_texture
,
*
back_buffer
;
const
struct
wined3d_cs_present
*
op
=
data
;
struct
wined3d_swapchain
*
swapchain
;
unsigned
int
i
;
swapchain
=
op
->
swapchain
;
back_buffer
=
swapchain
->
back_buffers
[
0
];
wined3d_swapchain_set_window
(
swapchain
,
op
->
dst_window_override
);
if
((
logo_texture
=
swapchain
->
device
->
logo_texture
))
{
RECT
rect
=
{
0
,
0
,
logo_texture
->
resource
.
width
,
logo_texture
->
resource
.
height
};
/* Blit the logo into the upper left corner of the back-buffer. */
wined3d_texture_blt
(
back_buffer
,
0
,
&
rect
,
logo_texture
,
0
,
&
rect
,
WINED3D_BLT_SRC_CKEY
,
NULL
,
WINED3D_TEXF_POINT
);
}
swapchain
->
swapchain_ops
->
swapchain_present
(
swapchain
,
&
op
->
src_rect
,
&
op
->
dst_rect
,
op
->
swap_interval
,
op
->
flags
);
if
(
TRACE_ON
(
fps
))
...
...
dlls/wined3d/swapchain.c
View file @
4bae47cf
...
...
@@ -469,7 +469,7 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
struct
wined3d_texture
*
back_buffer
=
swapchain
->
back_buffers
[
0
];
const
struct
wined3d_fb_state
*
fb
=
&
swapchain
->
device
->
cs
->
state
.
fb
;
struct
wined3d_rendertarget_view
*
dsv
=
fb
->
depth_stencil
;
struct
wined3d_texture
*
logo_texture
,
*
cursor_texture
;
struct
wined3d_texture
*
cursor_texture
;
const
struct
wined3d_gl_info
*
gl_info
;
struct
wined3d_context_gl
*
context_gl
;
struct
wined3d_context
*
context
;
...
...
@@ -488,15 +488,6 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain,
swapchain_gl_set_swap_interval
(
swapchain
,
context_gl
,
swap_interval
);
if
((
logo_texture
=
swapchain
->
device
->
logo_texture
))
{
RECT
rect
=
{
0
,
0
,
logo_texture
->
resource
.
width
,
logo_texture
->
resource
.
height
};
/* Blit the logo into the upper left corner of the drawable. */
wined3d_texture_blt
(
back_buffer
,
0
,
&
rect
,
logo_texture
,
0
,
&
rect
,
WINED3D_BLT_SRC_CKEY
,
NULL
,
WINED3D_TEXF_POINT
);
}
if
((
cursor_texture
=
swapchain
->
device
->
cursor_texture
)
&&
swapchain
->
device
->
bCursorVisible
&&
!
swapchain
->
device
->
hardwareCursor
)
{
...
...
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