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
446da60e
Commit
446da60e
authored
Mar 13, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Mar 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Don't allow changing internal pixel format if conflicts with non-internal.
parent
0791c3ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
opengl.c
dlls/winex11.drv/opengl.c
+6
-7
No files found.
dlls/winex11.drv/opengl.c
View file @
446da60e
...
...
@@ -1412,6 +1412,7 @@ static BOOL set_pixel_format( HDC hdc, int format, BOOL internal )
const
struct
wgl_pixel_format
*
fmt
;
int
value
;
HWND
hwnd
=
NtUserWindowFromDC
(
hdc
);
int
prev
;
TRACE
(
"(%p,%d)
\n
"
,
hdc
,
format
);
...
...
@@ -1435,14 +1436,12 @@ static BOOL set_pixel_format( HDC hdc, int format, BOOL internal )
return
FALSE
;
}
if
(
!
internal
)
{
/* cannot change it if already set */
int
prev
=
win32u_get_window_pixel_format
(
hwnd
);
if
(
prev
)
/* Even for internal pixel format fail setting it if the app has already set a
* different pixel format. Let wined3d create a backup GL context instead.
* Switching pixel format involves drawable recreation and is much more expensive
* than blitting from backup context. */
if
((
prev
=
win32u_get_window_pixel_format
(
hwnd
)))
return
prev
==
format
;
}
return
set_win_format
(
hwnd
,
fmt
,
internal
);
}
...
...
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