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
1d49ceaa
Commit
1d49ceaa
authored
Sep 03, 2018
by
Alex Henrie
Committed by
Alexandre Julliard
Sep 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl/tests: Don't run Pbuffer tests if no Pbuffer can be created.
Signed-off-by:
Alex Henrie
<
alexhenrie24@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2be851c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
opengl.c
dlls/opengl32/tests/opengl.c
+12
-11
No files found.
dlls/opengl32/tests/opengl.c
View file @
1d49ceaa
...
...
@@ -194,17 +194,18 @@ static void test_pbuffers(HDC hdc)
{
HDC
pbuffer_hdc
;
HPBUFFERARB
pbuffer
=
pwglCreatePbufferARB
(
hdc
,
iPixelFormat
,
640
/* width */
,
480
/* height */
,
NULL
);
if
(
!
pbuffer
)
skip
(
"Pbuffer creation failed!
\n
"
);
/* Test the pixelformat returned by GetPixelFormat on a pbuffer as the behavior is not clear */
pbuffer_hdc
=
pwglGetPbufferDCARB
(
pbuffer
);
res
=
GetPixelFormat
(
pbuffer_hdc
);
ok
(
res
==
1
,
"Unexpected iPixelFormat=%d (1 expected) returned by GetPixelFormat for offscreen format %d
\n
"
,
res
,
iPixelFormat
);
trace
(
"iPixelFormat returned by GetPixelFormat: %d
\n
"
,
res
);
trace
(
"PixelFormat from wglChoosePixelFormatARB: %d
\n
"
,
iPixelFormat
);
pwglReleasePbufferDCARB
(
pbuffer
,
hdc
);
if
(
pbuffer
)
{
/* Test the pixelformat returned by GetPixelFormat on a pbuffer as the behavior is not clear */
pbuffer_hdc
=
pwglGetPbufferDCARB
(
pbuffer
);
res
=
GetPixelFormat
(
pbuffer_hdc
);
ok
(
res
==
1
,
"Unexpected iPixelFormat=%d (1 expected) returned by GetPixelFormat for offscreen format %d
\n
"
,
res
,
iPixelFormat
);
trace
(
"iPixelFormat returned by GetPixelFormat: %d
\n
"
,
res
);
trace
(
"PixelFormat from wglChoosePixelFormatARB: %d
\n
"
,
iPixelFormat
);
pwglReleasePbufferDCARB
(
pbuffer
,
hdc
);
}
else
skip
(
"Pbuffer creation failed!
\n
"
);
}
else
skip
(
"Pbuffer test for offscreen pixelformat skipped as no offscreen-only format with pbuffer capabilities has been found
\n
"
);
}
...
...
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