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
83cbcdef
Commit
83cbcdef
authored
Jun 21, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Jun 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Add more tests for ChoosePixelFormat().
Test extended by Matteo Bruni.
parent
cc8d8b5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
opengl.c
dlls/opengl32/tests/opengl.c
+55
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
83cbcdef
...
...
@@ -342,6 +342,61 @@ static void test_choosepixelformat(void)
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
0
;
pfd
.
dwFlags
&=
~
PFD_DEPTH_DONTCARE
;
pfd
.
cDepthBits
=
16
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 16 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
16
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cDepthBits
=
16
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 16, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
16
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
8
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 8, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
8
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
24
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 24, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
24
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
32
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 32, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
24
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
32
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 32, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cDepthBits
>=
24
,
"Got unexpected cDepthBits %u.
\n
"
,
ret_fmt
.
cDepthBits
);
ok
(
!
ret_fmt
.
cStencilBits
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cDepthBits
=
0
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 32, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
1
;
pfd
.
cStencilBits
=
8
;
ok
(
test_pfd
(
&
pfd
,
&
ret_fmt
),
"depth 32, stencil 8 failed.
\n
"
);
ok
(
ret_fmt
.
cStencilBits
==
8
,
"Got unexpected cStencilBits %u.
\n
"
,
ret_fmt
.
cStencilBits
);
pfd
.
cStencilBits
=
0
;
pfd
.
cDepthBits
=
0
;
}
static
void
WINAPI
gl_debug_message_callback
(
GLenum
source
,
GLenum
type
,
GLuint
id
,
GLenum
severity
,
...
...
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