Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6dd2ed2c
Commit
6dd2ed2c
authored
Dec 16, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Check pixel format flags in X11DRV_wglChoosePixelFormatARB.
The check was dropped in
e392e0ac
, leaving the dwFlags variable unused.
parent
87090965
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
opengl.c
dlls/opengl32/tests/opengl.c
+1
-1
opengl.c
dlls/winex11.drv/opengl.c
+2
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
6dd2ed2c
...
...
@@ -1891,7 +1891,7 @@ static void test_wglChoosePixelFormatARB(HDC hdc)
ok
(
format
.
dwFlags
&
PFD_DRAW_TO_WINDOW
,
"got dwFlags %#lx
\n
"
,
format
.
dwFlags
);
ok
(
format
.
dwFlags
&
PFD_SUPPORT_OPENGL
,
"got dwFlags %#lx
\n
"
,
format
.
dwFlags
);
todo_wine
ok
(
format
.
dwFlags
&
PFD_SUPPORT_GDI
,
"got dwFlags %#lx
\n
"
,
format
.
dwFlags
);
ok
(
format
.
dwFlags
&
PFD_SUPPORT_GDI
,
"got dwFlags %#lx
\n
"
,
format
.
dwFlags
);
winetest_pop_context
();
}
...
...
dlls/winex11.drv/opengl.c
View file @
6dd2ed2c
...
...
@@ -2638,6 +2638,8 @@ static BOOL X11DRV_wglChoosePixelFormatARB( HDC hdc, const int *piAttribIList, c
if
(
i
==
nb_pixel_formats
)
continue
;
if
((
pixel_formats
[
i
].
dwFlags
&
dwFlags
)
!=
dwFlags
)
continue
;
format
=
&
formats
[
format_count
];
format
->
format
=
i
+
1
;
...
...
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