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
eb7f85f6
Commit
eb7f85f6
authored
Oct 13, 2008
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Don't call wglGetProcAddress at the start of the test.
parent
763562d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
opengl.c
dlls/opengl32/tests/opengl.c
+16
-8
No files found.
dlls/opengl32/tests/opengl.c
View file @
eb7f85f6
...
...
@@ -541,14 +541,6 @@ START_TEST(opengl)
0
,
0
,
0
/* layer masks */
};
init_functions
();
/* The lack of wglGetExtensionsStringARB in general means broken software rendering or the lack of decent OpenGL support, skip tests in such cases */
if
(
!
pwglGetExtensionsStringARB
)
{
skip
(
"wglGetExtensionsStringARB is not available
\n
"
);
return
;
}
hwnd
=
CreateWindow
(
"static"
,
"Title"
,
WS_OVERLAPPEDWINDOW
,
10
,
10
,
200
,
200
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
hwnd
!=
NULL
,
"err: %d
\n
"
,
GetLastError
());
...
...
@@ -585,6 +577,22 @@ START_TEST(opengl)
trace
(
"OpenGL driver version: %s
\n
"
,
glGetString
(
GL_VERSION
));
trace
(
"OpenGL vendor: %s
\n
"
,
glGetString
(
GL_VENDOR
));
}
else
{
skip
(
"Skipping OpenGL tests without a current context
\n
"
);
return
;
}
/* Initialisation of WGL functions depends on an implicit WGL context. For this reason we can't load them before making
* any WGL call :( On Wine this would work but not on real Windows because there can be different implementations (software, ICD, MCD).
*/
init_functions
();
/* The lack of wglGetExtensionsStringARB in general means broken software rendering or the lack of decent OpenGL support, skip tests in such cases */
if
(
!
pwglGetExtensionsStringARB
)
{
skip
(
"wglGetExtensionsStringARB is not available
\n
"
);
return
;
}
test_makecurrent
(
hdc
);
test_setpixelformat
(
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