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
bc3ba2f0
Commit
bc3ba2f0
authored
Mar 14, 2011
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 31, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Improve window destroy tests.
parent
1e0075cd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
opengl.c
dlls/opengl32/tests/opengl.c
+22
-0
No files found.
dlls/opengl32/tests/opengl.c
View file @
bc3ba2f0
...
...
@@ -949,6 +949,8 @@ static void test_destroy(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
ok
(
glerr
==
GL_NO_ERROR
,
"Failed glClear, error %#x.
\n
"
,
glerr
);
ret
=
SwapBuffers
(
dc
);
ok
(
ret
,
"Failed SwapBuffers, error %#x.
\n
"
,
GetLastError
());
ret
=
DestroyWindow
(
window
);
ok
(
ret
,
"Failed to destroy window, last error %#x.
\n
"
,
GetLastError
());
...
...
@@ -960,6 +962,10 @@ static void test_destroy(HDC oldhdc)
err
=
GetLastError
();
ok
(
!
ret
&&
err
==
ERROR_INVALID_HANDLE
,
"Unexpected behavior when making context current, ret %d, last error %#x.
\n
"
,
ret
,
err
);
SetLastError
(
0xdeadbeef
);
ret
=
SwapBuffers
(
dc
);
err
=
GetLastError
();
ok
(
!
ret
&&
err
==
ERROR_INVALID_HANDLE
,
"Unexpected behavior with SwapBuffer, last error %#x.
\n
"
,
err
);
ok
(
wglGetCurrentContext
()
==
ctx
,
"Wrong current context.
\n
"
);
...
...
@@ -967,6 +973,10 @@ static void test_destroy(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
ok
(
glerr
==
GL_NO_ERROR
,
"Failed glClear, error %#x.
\n
"
,
glerr
);
SetLastError
(
0xdeadbeef
);
ret
=
SwapBuffers
(
dc
);
err
=
GetLastError
();
ok
(
!
ret
&&
err
==
ERROR_INVALID_HANDLE
,
"Unexpected behavior with SwapBuffer, last error %#x.
\n
"
,
err
);
ret
=
wglMakeCurrent
(
NULL
,
NULL
);
ok
(
ret
,
"Failed to clear current context, last error %#x.
\n
"
,
GetLastError
());
...
...
@@ -975,6 +985,10 @@ static void test_destroy(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
todo_wine
ok
(
glerr
==
GL_INVALID_OPERATION
,
"Failed glClear, error %#x.
\n
"
,
glerr
);
SetLastError
(
0xdeadbeef
);
ret
=
SwapBuffers
(
dc
);
err
=
GetLastError
();
ok
(
!
ret
&&
err
==
ERROR_INVALID_HANDLE
,
"Unexpected behavior with SwapBuffer, last error %#x.
\n
"
,
err
);
SetLastError
(
0xdeadbeef
);
ret
=
wglMakeCurrent
(
dc
,
ctx
);
...
...
@@ -1087,6 +1101,8 @@ static void test_destroy_read(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
ok
(
glerr
==
GL_NO_ERROR
,
"Failed glCopyPixel, error %#x.
\n
"
,
glerr
);
ret
=
SwapBuffers
(
draw_dc
);
ok
(
ret
,
"Failed SwapBuffers, error %#x.
\n
"
,
GetLastError
());
ret
=
DestroyWindow
(
read_window
);
ok
(
ret
,
"Failed to destroy window, last error %#x.
\n
"
,
GetLastError
());
...
...
@@ -1105,6 +1121,8 @@ static void test_destroy_read(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
ok
(
glerr
==
GL_NO_ERROR
,
"Failed glClear, error %#x.
\n
"
,
glerr
);
ret
=
SwapBuffers
(
draw_dc
);
ok
(
ret
,
"Failed SwapBuffers, error %#x.
\n
"
,
GetLastError
());
ret
=
wglMakeCurrent
(
NULL
,
NULL
);
ok
(
ret
,
"Failed to clear current context, last error %#x.
\n
"
,
GetLastError
());
...
...
@@ -1125,6 +1143,10 @@ static void test_destroy_read(HDC oldhdc)
glFinish
();
glerr
=
glGetError
();
todo_wine
ok
(
glerr
==
GL_INVALID_OPERATION
,
"Failed glClear, error %#x.
\n
"
,
glerr
);
SetLastError
(
0xdeadbeef
);
ret
=
SwapBuffers
(
draw_dc
);
err
=
GetLastError
();
ok
(
!
ret
&&
err
==
ERROR_INVALID_HANDLE
,
"Unexpected behavior with SwapBuffer, last error %#x.
\n
"
,
err
);
SetLastError
(
0xdeadbeef
);
ret
=
pwglMakeContextCurrentARB
(
draw_dc
,
read_dc
,
ctx
);
...
...
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