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
87090965
Commit
87090965
authored
Dec 21, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Test wglChoosePixelFormatARB flags filters.
parent
409d0f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
opengl.c
dlls/opengl32/tests/opengl.c
+28
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
87090965
...
...
@@ -1821,6 +1821,13 @@ static void test_wglChoosePixelFormatARB(HDC hdc)
WGL_SUPPORT_OPENGL_ARB
,
1
,
0
};
static
int
attrib_list_flags
[]
=
{
WGL_DRAW_TO_WINDOW_ARB
,
1
,
WGL_SUPPORT_OPENGL_ARB
,
1
,
WGL_SUPPORT_GDI_ARB
,
1
,
0
};
PIXELFORMATDESCRIPTOR
fmt
,
last_fmt
;
BYTE
depth
,
last_depth
;
...
...
@@ -1867,6 +1874,27 @@ static void test_wglChoosePixelFormatARB(HDC hdc)
depth
,
last_depth
,
i
,
formats
[
i
]);
}
}
format_count
=
0
;
res
=
pwglChoosePixelFormatARB
(
hdc
,
attrib_list_flags
,
NULL
,
ARRAY_SIZE
(
formats
),
formats
,
&
format_count
);
ok
(
res
,
"Got unexpected result %d.
\n
"
,
res
);
for
(
i
=
0
;
i
<
format_count
;
++
i
)
{
PIXELFORMATDESCRIPTOR
format
=
{
0
};
BOOL
ret
;
winetest_push_context
(
"%u"
,
i
);
ret
=
DescribePixelFormat
(
hdc
,
formats
[
i
],
sizeof
(
format
),
&
format
);
ok
(
ret
,
"DescribePixelFormat failed, error %lu
\n
"
,
GetLastError
());
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
);
winetest_pop_context
();
}
}
static
void
test_copy_context
(
HDC
hdc
)
...
...
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