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
5c9ddc55
Commit
5c9ddc55
authored
Dec 09, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl32: Make it possible to use an alternative in wglGetProcAddress when an extension is missing.
parent
571dc0fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wgl.c
dlls/opengl32/wgl.c
+13
-0
No files found.
dlls/opengl32/wgl.c
View file @
5c9ddc55
...
...
@@ -878,6 +878,19 @@ PROC WINAPI wglGetProcAddress( LPCSTR name )
if
(
!
is_extension_supported
(
ext_ret
->
extension
))
{
unsigned
int
i
;
static
const
struct
{
const
char
*
name
,
*
alt
;
}
alternatives
[]
=
{
{
"glCopyTexSubImage3DEXT"
,
"glCopyTexSubImage3D"
},
/* needed by RuneScape */
};
for
(
i
=
0
;
i
<
sizeof
(
alternatives
)
/
sizeof
(
alternatives
[
0
]);
i
++
)
{
if
(
strcmp
(
name
,
alternatives
[
i
].
name
))
continue
;
WARN
(
"Extension %s required for %s not supported, trying %s
\n
"
,
ext_ret
->
extension
,
name
,
alternatives
[
i
].
alt
);
return
wglGetProcAddress
(
alternatives
[
i
].
alt
);
}
WARN
(
"Extension %s required for %s not supported
\n
"
,
ext_ret
->
extension
,
name
);
return
NULL
;
}
...
...
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