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
0c6c9f04
Commit
0c6c9f04
authored
Jul 20, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Jul 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Restore recording mode later in ActiveRender().
parent
b77b72c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
+15
-19
device.c
dlls/wined3d/device.c
+15
-19
No files found.
dlls/wined3d/device.c
View file @
0c6c9f04
...
...
@@ -7225,6 +7225,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_FindGLContext(IWineD3DDevice *iface, IW
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ActiveRender
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
RenderSurface
)
{
HRESULT
ret
=
WINED3DERR_INVALIDCALL
;
BOOL
oldRecording
;
IWineD3DStateBlockImpl
*
oldUpdateStateBlock
;
/**
* Currently only active for GLX >= 1.3
...
...
@@ -7444,23 +7446,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ActiveRender(IWineD3DDevice* iface,
}
}
#if 1
/* Apply the stateblock to the new context
FIXME: This is a bit of a hack, each context should know it's own state,
the directX current directX state should then be applied to the context */
{
BOOL
oldRecording
;
IWineD3DStateBlockImpl
*
oldUpdateStateBlock
;
oldUpdateStateBlock
=
This
->
updateStateBlock
;
oldRecording
=
This
->
isRecordingState
;
This
->
isRecordingState
=
FALSE
;
This
->
updateStateBlock
=
This
->
stateBlock
;
IWineD3DStateBlock_Apply
((
IWineD3DStateBlock
*
)
This
->
stateBlock
);
This
->
isRecordingState
=
oldRecording
;
This
->
updateStateBlock
=
oldUpdateStateBlock
;
}
#endif
/* Disable recording, and apply the stateblock to the new context
* FIXME: This is a bit of a hack, each context should know it's own state,
* the directX current directX state should then be applied to the context */
oldUpdateStateBlock
=
This
->
updateStateBlock
;
oldRecording
=
This
->
isRecordingState
;
This
->
isRecordingState
=
FALSE
;
This
->
updateStateBlock
=
This
->
stateBlock
;
IWineD3DStateBlock_Apply
((
IWineD3DStateBlock
*
)
This
->
stateBlock
);
/* clean up the current rendertargets swapchain (if it belonged to one) */
if
(
currentSwapchain
!=
NULL
)
{
...
...
@@ -7474,10 +7467,9 @@ the directX current directX state should then be applied to the context */
IWineD3DSurface_AddRef
(
This
->
renderTarget
);
IWineD3DSurface_Release
(
tmp
);
{
DWORD
value
;
/* The surface must be rendered upside down to cancel the flip produce by glCopyTexImage */
/* Check that the container is not a swapchain member */
...
...
@@ -7498,6 +7490,10 @@ the directX current directX state should then be applied to the context */
This
->
proj_valid
=
FALSE
;
}
/* Restore recording state */
This
->
isRecordingState
=
oldRecording
;
This
->
updateStateBlock
=
oldUpdateStateBlock
;
ret
=
WINED3D_OK
;
if
(
cfgs
!=
NULL
)
{
...
...
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