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
d0803ef1
Commit
d0803ef1
authored
Jun 24, 2014
by
Bruno Jesus
Committed by
Alexandre Julliard
Jun 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Test glGetString() without an active GL context.
parent
b72c8a76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
opengl.c
dlls/opengl32/tests/opengl.c
+5
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
d0803ef1
...
@@ -715,6 +715,9 @@ static DWORD WINAPI wgl_thread(void *param)
...
@@ -715,6 +715,9 @@ static DWORD WINAPI wgl_thread(void *param)
struct
wgl_thread_param
*
p
=
param
;
struct
wgl_thread_param
*
p
=
param
;
HDC
hdc
=
GetDC
(
p
->
hwnd
);
HDC
hdc
=
GetDC
(
p
->
hwnd
);
ok
(
!
glGetString
(
GL_RENDERER
)
&&
!
glGetString
(
GL_VERSION
)
&&
!
glGetString
(
GL_VENDOR
),
"Expected NULL string when no active context is set
\n
"
);
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
p
->
make_current
=
wglMakeCurrent
(
hdc
,
p
->
hglrc
);
p
->
make_current
=
wglMakeCurrent
(
hdc
,
p
->
hglrc
);
p
->
make_current_error
=
GetLastError
();
p
->
make_current_error
=
GetLastError
();
...
@@ -1668,6 +1671,8 @@ START_TEST(opengl)
...
@@ -1668,6 +1671,8 @@ START_TEST(opengl)
test_message_window
();
test_message_window
();
test_dc
(
hwnd
,
hdc
);
test_dc
(
hwnd
,
hdc
);
ok
(
!
glGetString
(
GL_RENDERER
)
&&
!
glGetString
(
GL_VERSION
)
&&
!
glGetString
(
GL_VENDOR
),
"Expected NULL string when no active context is set
\n
"
);
hglrc
=
wglCreateContext
(
hdc
);
hglrc
=
wglCreateContext
(
hdc
);
res
=
wglMakeCurrent
(
hdc
,
hglrc
);
res
=
wglMakeCurrent
(
hdc
,
hglrc
);
ok
(
res
,
"wglMakeCurrent failed!
\n
"
);
ok
(
res
,
"wglMakeCurrent failed!
\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