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
b9db4340
Commit
b9db4340
authored
Aug 14, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Aug 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Mark drawable as dirty when setting pixel format.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=55341
parent
31e52182
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
opengl.c
dlls/winex11.drv/opengl.c
+12
-2
No files found.
dlls/winex11.drv/opengl.c
View file @
b9db4340
...
...
@@ -1393,17 +1393,27 @@ static struct gl_drawable *create_gl_drawable( HWND hwnd, const struct wgl_pixel
*/
static
BOOL
set_win_format
(
HWND
hwnd
,
const
struct
wgl_pixel_format
*
format
,
BOOL
internal
)
{
struct
gl_drawable
*
gl
;
struct
gl_drawable
*
old
,
*
gl
;
if
(
!
format
->
visual
)
return
FALSE
;
if
(
!
(
gl
=
create_gl_drawable
(
hwnd
,
format
,
FALSE
,
internal
)))
return
FALSE
;
old
=
get_gl_drawable
(
hwnd
,
0
);
if
(
!
(
gl
=
create_gl_drawable
(
hwnd
,
format
,
FALSE
,
internal
)))
{
release_gl_drawable
(
old
);
return
FALSE
;
}
TRACE
(
"created GL drawable %lx for win %p %s
\n
"
,
gl
->
drawable
,
hwnd
,
debugstr_fbconfig
(
format
->
fbconfig
));
if
(
old
)
mark_drawable_dirty
(
old
,
gl
);
XFlush
(
gdi_display
);
release_gl_drawable
(
gl
);
release_gl_drawable
(
old
);
win32u_set_window_pixel_format
(
hwnd
,
pixel_format_index
(
format
),
internal
);
return
TRUE
;
...
...
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