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
82cbbbdb
Commit
82cbbbdb
authored
Feb 11, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Only use functions if they are implemented.
parent
e2539cb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
opengl.c
dlls/opengl32/tests/opengl.c
+19
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
82cbbbdb
...
...
@@ -236,6 +236,12 @@ static void test_colorbits(HDC hdc)
int
res
;
int
iPixelFormat
=
0
;
if
(
!
pwglChoosePixelFormatARB
)
{
skip
(
"wglChoosePixelFormatARB is not available
\n
"
);
return
;
}
/* We need a pixel format with at least one bit of alpha */
res
=
pwglChoosePixelFormatARB
(
hdc
,
iAttribs
,
NULL
,
1
,
&
iPixelFormat
,
&
nFormats
);
if
(
res
==
FALSE
||
nFormats
==
0
)
...
...
@@ -264,6 +270,12 @@ static void test_gdi_dbuf(HDC hdc)
int
iPixelFormat
;
int
res
;
if
(
!
pwglGetPixelFormatAttribivARB
)
{
skip
(
"wglGetPixelFormatAttribivARB is not available
\n
"
);
return
;
}
nFormats
=
DescribePixelFormat
(
hdc
,
0
,
0
,
NULL
);
for
(
iPixelFormat
=
1
;
iPixelFormat
<=
nFormats
;
iPixelFormat
++
)
{
...
...
@@ -383,6 +395,13 @@ START_TEST(opengl)
test_colorbits
(
hdc
);
test_gdi_dbuf
(
hdc
);
if
(
!
pwglGetExtensionsStringARB
)
{
skip
(
"wglGetExtensionsStringARB is not available
\n
"
);
DestroyWindow
(
hwnd
);
return
;
}
wgl_extensions
=
pwglGetExtensionsStringARB
(
hdc
);
if
(
wgl_extensions
==
NULL
)
skip
(
"Skipping opengl32 tests because this OpenGL implementation doesn't support WGL extensions!
\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