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
d6442421
Commit
d6442421
authored
Aug 17, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Aug 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32/tests: Be a bit more verbose when doing wglGetProcAddress.
parent
72870276
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
opengl.c
dlls/opengl32/tests/opengl.c
+13
-6
No files found.
dlls/opengl32/tests/opengl.c
View file @
d6442421
...
...
@@ -50,17 +50,24 @@ static const char* wgl_extensions = NULL;
static
void
init_functions
(
void
)
{
#define GET_PROC(func) \
p ## func = (void*)wglGetProcAddress(#func); \
if(!p ## func) \
trace("wglGetProcAddress(%s) failed\n", #func);
/* WGL_ARB_extensions_string */
pwglGetExtensionsStringARB
=
(
void
*
)
wglGetProcAddress
(
"wglGetExtensionsStringARB"
);
GET_PROC
(
wglGetExtensionsStringARB
)
/* WGL_ARB_pixel_format */
pwglChoosePixelFormatARB
=
(
void
*
)
wglGetProcAddress
(
"wglChoosePixelFormatARB"
);
pwglGetPixelFormatAttribivARB
=
(
void
*
)
wglGetProcAddress
(
"wglGetPixelFormatAttribivARB"
);
GET_PROC
(
wglChoosePixelFormatARB
)
GET_PROC
(
wglGetPixelFormatAttribivARB
)
/* WGL_ARB_pbuffer */
pwglCreatePbufferARB
=
(
void
*
)
wglGetProcAddress
(
"wglCreatePbufferARB"
);
pwglGetPbufferDCARB
=
(
void
*
)
wglGetProcAddress
(
"wglGetPbufferDCARB"
);
pwglReleasePbufferDCARB
=
(
void
*
)
wglGetProcAddress
(
"wglReleasePbufferDCARB"
);
GET_PROC
(
wglCreatePbufferARB
)
GET_PROC
(
wglGetPbufferDCARB
)
GET_PROC
(
wglReleasePbufferDCARB
)
#undef GET_PROC
}
static
void
test_pbuffers
(
HDC
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