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
52731a80
Commit
52731a80
authored
Aug 26, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Make it clear that glFlush and glFinish are WGL functions.
parent
21f4e42a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
device.c
dlls/wined3d/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+5
-5
surface.c
dlls/wined3d/surface.c
+2
-2
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+6
-3
No files found.
dlls/wined3d/device.c
View file @
52731a80
...
...
@@ -4854,7 +4854,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface) {
ActivateContext
(
This
,
NULL
,
CTXUSAGE_RESOURCELOAD
);
/* We only have to do this if we need to read the, swapbuffers performs a flush for us */
glFlush
();
w
glFlush
();
/* No checkGLcall here to avoid locking the lock just for checking a call that hardly ever
* fails
*/
...
...
@@ -5067,7 +5067,7 @@ HRESULT IWineD3DDeviceImpl_ClearSurface(IWineD3DDeviceImpl *This, IWineD3DSurfa
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
((
IWineD3DSurface
*
)
target
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)))
{
if
(
target
==
(
IWineD3DSurfaceImpl
*
)
swapchain
->
frontBuffer
)
{
glFlush
();
w
glFlush
();
}
IWineD3DSwapChain_Release
((
IWineD3DSwapChain
*
)
swapchain
);
}
...
...
dlls/wined3d/directx.c
View file @
52731a80
...
...
@@ -576,7 +576,7 @@ static void test_pbo_functionality(struct wined3d_gl_info *gl_info)
checkGLcall
(
"Loading the PBO test texture"
);
GL_EXTCALL
(
glBindBufferARB
(
GL_PIXEL_UNPACK_BUFFER_ARB
,
0
));
glFinish
();
/* just to be sure */
w
glFinish
();
/* just to be sure */
memset
(
check
,
0
,
sizeof
(
check
));
glGetTexImage
(
GL_TEXTURE_2D
,
0
,
GL_BGRA
,
GL_UNSIGNED_INT_8_8_8_8_REV
,
check
);
...
...
@@ -4646,11 +4646,11 @@ BOOL InitAdapters(IWineD3DImpl *This)
* otherwise because we have to use winex11.drv's override
*/
#ifdef USE_WIN32_OPENGL
glFinish
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"glFinish"
);
glFlush
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"glFlush"
);
w
glFinish
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"glFinish"
);
w
glFlush
=
(
void
*
)
GetProcAddress
(
mod_gl
,
"glFlush"
);
#else
glFinish
=
(
void
*
)
pwglGetProcAddress
(
"wglFinish"
);
glFlush
=
(
void
*
)
pwglGetProcAddress
(
"wglFlush"
);
w
glFinish
=
(
void
*
)
pwglGetProcAddress
(
"wglFinish"
);
w
glFlush
=
(
void
*
)
pwglGetProcAddress
(
"wglFlush"
);
#endif
glEnableWINE
=
glEnable
;
...
...
dlls/wined3d/surface.c
View file @
52731a80
...
...
@@ -3814,7 +3814,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, const
/* Flush in case the drawable is used by multiple GL contexts */
if
(
dstSwapchain
&&
(
This
==
(
IWineD3DSurfaceImpl
*
)
dstSwapchain
->
frontBuffer
||
dstSwapchain
->
num_contexts
>=
2
))
glFlush
();
w
glFlush
();
/* TODO: If the surface is locked often, perform the Blt in software on the memory instead */
/* The surface is now in the drawable. On onscreen surfaces or without fbos the texture
...
...
@@ -4680,7 +4680,7 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
/* Make sure to flush the buffers. This is needed in apps like Red Alert II and Tiberian SUN that use multiple WGL contexts. */
if
(((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
frontBuffer
==
(
IWineD3DSurface
*
)
This
||
((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
num_contexts
>=
2
)
glFlush
();
w
glFlush
();
IWineD3DSwapChain_Release
(
swapchain
);
}
else
{
...
...
dlls/wined3d/wined3d_gl.h
View file @
52731a80
...
...
@@ -1141,10 +1141,13 @@ void (WINE_GLAPI *glViewport) (GLint x, GLint y, GLsizei width, GLsizei height);
void
(
WINE_GLAPI
*
glPointParameterfv
)
(
GLenum
pname
,
const
GLfloat
*
params
);
/* glFinish and glFlush are always loaded from opengl32.dll, thus they always have
* __stdcall calling convention
* __stdcall calling convention.
*
* They are wgl functions and must not be called inside the gl lock, give them a
* name that makes this clear
*/
void
(
__stdcall
*
glFinish
)
();
void
(
__stdcall
*
glFlush
)
();
void
(
__stdcall
*
w
glFinish
)
();
void
(
__stdcall
*
w
glFlush
)
();
/* WGL functions */
HGLRC
(
WINAPI
*
pwglCreateContext
)(
HDC
);
...
...
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