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
001f380a
Commit
001f380a
authored
Sep 29, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: CreateContext should not be called between ENTER_GL/LEAVE_GL.
parent
46f33f4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
context.c
dlls/wined3d/context.c
+2
-0
device.c
dlls/wined3d/device.c
+0
-3
swapchain.c
dlls/wined3d/swapchain.c
+2
-3
No files found.
dlls/wined3d/context.c
View file @
001f380a
...
...
@@ -324,6 +324,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
goto
out
;
}
ENTER_GL
();
TRACE
(
"Setting up the screen
\n
"
);
/* Clear the screen */
glClearColor
(
1
.
0
,
0
.
0
,
0
.
0
,
0
.
0
);
...
...
@@ -389,6 +390,7 @@ WineD3DContext *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceImpl *tar
checkGLcall
(
"glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)
\n
"
);
}
}
LEAVE_GL
();
if
(
oldDrawable
&&
oldCtx
)
{
pwglMakeCurrent
(
oldDrawable
,
oldCtx
);
...
...
dlls/wined3d/device.c
View file @
001f380a
...
...
@@ -1456,10 +1456,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
return
E_OUTOFMEMORY
;
object
->
num_contexts
=
1
;
ENTER_GL
();
object
->
context
[
0
]
=
CreateContext
(
This
,
(
IWineD3DSurfaceImpl
*
)
object
->
frontBuffer
,
object
->
win_handle
,
FALSE
/* pbuffer */
,
pPresentationParameters
);
LEAVE_GL
();
if
(
!
object
->
context
[
0
])
{
ERR
(
"Failed to create a new context
\n
"
);
hr
=
WINED3DERR_NOTAVAILABLE
;
...
...
dlls/wined3d/swapchain.c
View file @
001f380a
...
...
@@ -132,7 +132,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
ActivateContext
(
This
->
wineD3DDevice
,
This
->
backBuffer
[
0
],
CTXUSAGE_RESOURCELOAD
);
ENTER_GL
();
/* Render the cursor onto the back buffer, using our nifty directdraw blitting code :-) */
if
(
This
->
wineD3DDevice
->
bCursorVisible
&&
This
->
wineD3DDevice
->
cursorTexture
)
{
...
...
@@ -244,7 +243,9 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
#if defined(SHOW_FRAME_MAKEUP)
FIXME
(
"Singe Frame snapshots Starting
\n
"
);
isDumpingFrames
=
TRUE
;
ENTER_GL
();
glClear
(
GL_COLOR_BUFFER_BIT
);
LEAVE_GL
();
#endif
#if defined(SINGLE_FRAME_DEBUGGING)
...
...
@@ -272,8 +273,6 @@ static HRESULT WINAPI IWineD3DSwapChainImpl_Present(IWineD3DSwapChain *iface, CO
}
#endif
LEAVE_GL
();
if
(
This
->
presentParms
.
SwapEffect
==
WINED3DSWAPEFFECT_DISCARD
)
{
TRACE
(
"Clearing the color buffer with pink color
\n
"
);
...
...
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