Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
c89fb41f
Commit
c89fb41f
authored
Nov 23, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Nov 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Fix wglCreateContextAttribsARB test on nvidia.
parent
da92afa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
opengl.c
dlls/opengl32/tests/opengl.c
+4
-2
No files found.
dlls/opengl32/tests/opengl.c
View file @
c89fb41f
...
...
@@ -551,6 +551,8 @@ static void test_dc(HWND hwnd, HDC hdc)
}
}
/* Nvidia converts win32 error codes to (0xc007 << 16) | win32_error_code */
#define NVIDIA_HRESULT_FROM_WIN32(x) (HRESULT_FROM_WIN32(x) | 0x40000000)
static
void
test_opengl3
(
HDC
hdc
)
{
/* Try to create a context compatible with OpenGL 1.x; 1.0-2.1 is allowed */
...
...
@@ -571,7 +573,7 @@ static void test_opengl3(HDC hdc)
ok
(
gl3Ctx
==
0
,
"pwglCreateContextAttribsARB using an invalid HDC passed
\n
"
);
error
=
GetLastError
();
todo_wine
ok
(
error
==
ERROR_DC_NOT_FOUND
||
broken
(
HRESULT_FROM_WIN32
(
ERROR_INVALID_DATA
)),
/* Nvidia Vista + Win7 */
broken
(
error
==
NVIDIA_
HRESULT_FROM_WIN32
(
ERROR_INVALID_DATA
)),
/* Nvidia Vista + Win7 */
"Expected ERROR_DC_NOT_FOUND, got error=%x
\n
"
,
error
);
wglDeleteContext
(
gl3Ctx
);
}
...
...
@@ -585,7 +587,7 @@ static void test_opengl3(HDC hdc)
error
=
GetLastError
();
/* The Nvidia implementation seems to return hresults instead of win32 error codes */
todo_wine
ok
(
error
==
ERROR_INVALID_OPERATION
||
error
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_OPERATION
),
"Expected ERROR_INVALID_OPERATION, got error=%x
\n
"
,
error
);
error
==
NVIDIA_
HRESULT_FROM_WIN32
(
ERROR_INVALID_OPERATION
),
"Expected ERROR_INVALID_OPERATION, got error=%x
\n
"
,
error
);
wglDeleteContext
(
gl3Ctx
);
}
...
...
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