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
e86ff2a3
Commit
e86ff2a3
authored
Dec 05, 2008
by
Huw Davies
Committed by
Alexandre Julliard
Dec 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl/tests: Skip tests if we can't find a pixel format.
parent
252525da
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
opengl.c
dlls/opengl32/tests/opengl.c
+8
-1
No files found.
dlls/opengl32/tests/opengl.c
View file @
e86ff2a3
...
...
@@ -555,7 +555,12 @@ START_TEST(opengl)
hdc
=
GetDC
(
hwnd
);
iPixelFormat
=
ChoosePixelFormat
(
hdc
,
&
pfd
);
ok
(
iPixelFormat
>
0
,
"No pixelformat found!
\n
"
);
/* This should never happen as ChoosePixelFormat always returns a closest match */
if
(
iPixelFormat
==
0
)
{
/* This should never happen as ChoosePixelFormat always returns a closest match, but currently this fails in Wine if we don't have glX */
win_skip
(
"Unable to find pixel format.
\n
"
);
goto
cleanup
;
}
/* We shouldn't be able to create a context from a hdc which doesn't have a pixel format set */
hglrc
=
wglCreateContext
(
hdc
);
...
...
@@ -615,6 +620,8 @@ START_TEST(opengl)
else
trace
(
"WGL_ARB_pbuffer not supported, skipping pbuffer test
\n
"
);
cleanup
:
ReleaseDC
(
hwnd
,
hdc
);
DestroyWindow
(
hwnd
);
}
}
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