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
75cb584e
Commit
75cb584e
authored
Jun 23, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Implement wglSwapIntervalEXT.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f5a51249
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
opengl.c
dlls/wineandroid.drv/opengl.c
+38
-0
No files found.
dlls/wineandroid.drv/opengl.c
View file @
75cb584e
...
...
@@ -97,6 +97,7 @@ static void *opengl_handle;
static
struct
wgl_pixel_format
*
pixel_formats
;
static
int
nb_pixel_formats
,
nb_onscreen_formats
;
static
EGLDisplay
display
;
static
int
swap_interval
;
static
char
wgl_extensions
[
4096
];
static
struct
opengl_funcs
egl_funcs
;
...
...
@@ -376,6 +377,39 @@ done:
}
/***********************************************************************
* android_wglSwapIntervalEXT
*/
static
BOOL
android_wglSwapIntervalEXT
(
int
interval
)
{
BOOL
ret
=
TRUE
;
TRACE
(
"(%d)
\n
"
,
interval
);
if
(
interval
<
0
)
{
SetLastError
(
ERROR_INVALID_DATA
);
return
FALSE
;
}
ret
=
p_eglSwapInterval
(
display
,
interval
);
if
(
ret
)
swap_interval
=
interval
;
else
SetLastError
(
ERROR_DC_NOT_FOUND
);
return
ret
;
}
/***********************************************************************
* android_wglGetSwapIntervalEXT
*/
static
int
android_wglGetSwapIntervalEXT
(
void
)
{
return
swap_interval
;
}
/***********************************************************************
* android_wglSetPixelFormatWINE
*/
static
BOOL
android_wglSetPixelFormatWINE
(
HDC
hdc
,
int
format
)
...
...
@@ -608,6 +642,10 @@ static void init_extensions(void)
register_extension
(
"WGL_EXT_extensions_string"
);
egl_funcs
.
ext
.
p_wglGetExtensionsStringEXT
=
android_wglGetExtensionsStringEXT
;
register_extension
(
"WGL_EXT_swap_control"
);
egl_funcs
.
ext
.
p_wglSwapIntervalEXT
=
android_wglSwapIntervalEXT
;
egl_funcs
.
ext
.
p_wglGetSwapIntervalEXT
=
android_wglGetSwapIntervalEXT
;
register_extension
(
"WGL_EXT_framebuffer_sRGB"
);
/* In WineD3D we need the ability to set the pixel format more than once (e.g. after a device reset).
...
...
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