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
13f12649
Commit
13f12649
authored
Dec 06, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call wglSwapBuffers through the GL driver function table.
parent
15632df2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
directx.c
dlls/wined3d/directx.c
+2
-0
swapchain.c
dlls/wined3d/swapchain.c
+3
-1
No files found.
dlls/wined3d/directx.c
View file @
13f12649
...
...
@@ -5460,6 +5460,7 @@ static BOOL InitAdapters(struct wined3d *wined3d)
#define USE_GL_FUNC(f) gl_info->gl_ops.gl.p_##f = (void *)GetProcAddress(mod_gl, #f);
ALL_WGL_FUNCS
#undef USE_GL_FUNC
gl_info
->
gl_ops
.
wgl
.
p_wglSwapBuffers
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"wglSwapBuffers"
);
}
#else
/* To bypass the opengl32 thunks retrieve functions from the WGL driver instead of opengl32 */
...
...
@@ -5468,6 +5469,7 @@ static BOOL InitAdapters(struct wined3d *wined3d)
const
struct
opengl_funcs
*
wgl_driver
=
__wine_get_wgl_driver
(
hdc
,
WINE_WGL_DRIVER_VERSION
);
ReleaseDC
(
0
,
hdc
);
if
(
!
wgl_driver
||
wgl_driver
==
(
void
*
)
-
1
)
goto
nogl_adapter
;
gl_info
->
gl_ops
.
wgl
=
wgl_driver
->
wgl
;
gl_info
->
gl_ops
.
gl
=
wgl_driver
->
gl
;
}
#endif
...
...
dlls/wined3d/swapchain.c
View file @
13f12649
...
...
@@ -560,7 +560,9 @@ static void swapchain_gl_present(struct wined3d_swapchain *swapchain, const RECT
if
(
swapchain
->
num_contexts
>
1
)
gl_info
->
gl_ops
.
gl
.
p_glFinish
();
SwapBuffers
(
context
->
hdc
);
/* TODO: cycle through the swapchain buffers */
/* call wglSwapBuffers through the gl table to avoid confusing the Steam overlay */
gl_info
->
gl_ops
.
wgl
.
p_wglSwapBuffers
(
context
->
hdc
);
/* TODO: cycle through the swapchain buffers */
TRACE
(
"SwapBuffers called, Starting new frame
\n
"
);
/* FPS support */
...
...
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