Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
wine
Commits
b9db4340
Commit
b9db4340
authored
1 year ago
by
Anton Baskanov
Committed by
Alexandre Julliard
1 year ago
Browse files
Options
Downloads
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
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!3573
winex11.drv: Mark drawable as dirty when setting pixel format.
Pipeline
#13990
skipped
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/winex11.drv/opengl.c
+12
-2
12 additions, 2 deletions
dlls/winex11.drv/opengl.c
with
12 additions
and
2 deletions
dlls/winex11.drv/opengl.c
+
12
−
2
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment