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
e5d995d8
Commit
e5d995d8
authored
Feb 19, 2024
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Mar 06, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winewayland.drv: Implement wglGetExtensionsString{ARB,EXT}.
parent
ea522c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
opengl.c
dlls/winewayland.drv/opengl.c
+26
-0
No files found.
dlls/winewayland.drv/opengl.c
View file @
e5d995d8
...
...
@@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(waylanddrv);
static
void
*
egl_handle
;
static
struct
opengl_funcs
opengl_funcs
;
static
EGLDisplay
egl_display
;
static
char
wgl_extensions
[
4096
];
#define USE_GL_FUNC(name) #name,
static
const
char
*
opengl_func_names
[]
=
{
ALL_WGL_FUNCS
};
...
...
@@ -57,6 +58,18 @@ DECL_FUNCPTR(eglInitialize);
DECL_FUNCPTR
(
eglQueryString
);
#undef DECL_FUNCPTR
static
const
char
*
wayland_wglGetExtensionsStringARB
(
HDC
hdc
)
{
TRACE
(
"() returning
\"
%s
\"\n
"
,
wgl_extensions
);
return
wgl_extensions
;
}
static
const
char
*
wayland_wglGetExtensionsStringEXT
(
void
)
{
TRACE
(
"() returning
\"
%s
\"\n
"
,
wgl_extensions
);
return
wgl_extensions
;
}
static
BOOL
has_extension
(
const
char
*
list
,
const
char
*
ext
)
{
size_t
len
=
strlen
(
ext
);
...
...
@@ -72,6 +85,13 @@ static BOOL has_extension(const char *list, const char *ext)
return
FALSE
;
}
static
void
register_extension
(
const
char
*
ext
)
{
if
(
wgl_extensions
[
0
])
strcat
(
wgl_extensions
,
" "
);
strcat
(
wgl_extensions
,
ext
);
TRACE
(
"%s
\n
"
,
ext
);
}
static
BOOL
init_opengl_funcs
(
void
)
{
unsigned
int
i
;
...
...
@@ -85,6 +105,12 @@ static BOOL init_opengl_funcs(void)
}
}
register_extension
(
"WGL_ARB_extensions_string"
);
opengl_funcs
.
ext
.
p_wglGetExtensionsStringARB
=
wayland_wglGetExtensionsStringARB
;
register_extension
(
"WGL_EXT_extensions_string"
);
opengl_funcs
.
ext
.
p_wglGetExtensionsStringEXT
=
wayland_wglGetExtensionsStringEXT
;
return
TRUE
;
}
...
...
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