Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a0264eb1
Commit
a0264eb1
authored
Mar 15, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the WGL extension detection code to the same place as regular GL extension detection.
parent
bb08fafd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
directx.c
dlls/wined3d/directx.c
+10
-10
No files found.
dlls/wined3d/directx.c
View file @
a0264eb1
...
...
@@ -2452,6 +2452,16 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
/* Now work out what GL support this card really has */
load_gl_funcs
(
gl_info
,
gl_version
);
hdc
=
pwglGetCurrentDC
();
/* Not all GL drivers might offer WGL extensions e.g. VirtualBox. */
if
(
GL_EXTCALL
(
wglGetExtensionsStringARB
))
WGL_Extensions
=
GL_EXTCALL
(
wglGetExtensionsStringARB
(
hdc
));
if
(
!
WGL_Extensions
)
WARN_
(
d3d_caps
)(
"WGL extensions not supported.
\n
"
);
else
parse_extension_string
(
gl_info
,
WGL_Extensions
,
wgl_extension_map
,
sizeof
(
wgl_extension_map
)
/
sizeof
(
*
wgl_extension_map
));
ENTER_GL
();
/* Now mark all the extensions supported which are included in the opengl core version. Do this *after*
...
...
@@ -2843,16 +2853,6 @@ static BOOL wined3d_adapter_init_gl_caps(struct wined3d_adapter *adapter)
gl_info
->
wrap_lookup
[
WINED3D_TADDRESS_MIRROR_ONCE
-
WINED3D_TADDRESS_WRAP
]
=
gl_info
->
supported
[
ATI_TEXTURE_MIRROR_ONCE
]
?
GL_MIRROR_CLAMP_TO_EDGE_ATI
:
GL_REPEAT
;
hdc
=
pwglGetCurrentDC
();
/* Not all GL drivers might offer WGL extensions e.g. VirtualBox. */
if
(
GL_EXTCALL
(
wglGetExtensionsStringARB
))
WGL_Extensions
=
GL_EXTCALL
(
wglGetExtensionsStringARB
(
hdc
));
if
(
!
WGL_Extensions
)
WARN_
(
d3d_caps
)(
"WGL extensions not supported.
\n
"
);
else
parse_extension_string
(
gl_info
,
WGL_Extensions
,
wgl_extension_map
,
sizeof
(
wgl_extension_map
)
/
sizeof
(
*
wgl_extension_map
));
fixup_extensions
(
gl_info
,
gl_renderer_str
,
gl_vendor
,
card_vendor
,
device
);
init_driver_info
(
driver_info
,
card_vendor
,
device
);
add_gl_compat_wrappers
(
gl_info
);
...
...
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