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
2d750060
Commit
2d750060
authored
Jul 21, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of lastActiveRenderTarget.
parent
223b9d5c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
14 deletions
+6
-14
context.c
dlls/wined3d/context.c
+6
-9
device.c
dlls/wined3d/device.c
+0
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-3
No files found.
dlls/wined3d/context.c
View file @
2d750060
...
...
@@ -503,10 +503,8 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
/* Implicit render target destroyed, that means the
* device is being destroyed whatever we set here, it
* shouldn't matter. */
TRACE
(
"Device is being destroyed, setting lastActiveRenderTarget to 0xdeadbabe.
\n
"
);
This
->
lastActiveRenderTarget
=
(
IWineD3DSurface
*
)
0xdeadbabe
;
This
->
activeContext
->
current_rt
=
This
->
lastActiveRenderTarget
;
TRACE
(
"Device is being destroyed, setting current_rt to 0xdeadbabe.
\n
"
);
This
->
activeContext
->
current_rt
=
(
IWineD3DSurface
*
)
0xdeadbabe
;
}
}
else
...
...
@@ -514,8 +512,7 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
WARN
(
"Render target set, but swapchain does not exist!
\n
"
);
/* May happen during ddraw uninitialization. */
This
->
lastActiveRenderTarget
=
(
IWineD3DSurface
*
)
0xdeadcafe
;
This
->
activeContext
->
current_rt
=
This
->
lastActiveRenderTarget
;
This
->
activeContext
->
current_rt
=
(
IWineD3DSurface
*
)
0xdeadcafe
;
}
}
else
if
(
This
->
d3d_initialized
)
...
...
@@ -1764,13 +1761,13 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
TRACE
(
"(%p): Selecting context for render target %p, thread %d
\n
"
,
This
,
target
,
tid
);
if
(
!
target
)
target
=
This
->
lastActiveRenderTarge
t
;
if
(
!
target
)
target
=
This
->
activeContext
->
current_r
t
;
if
(
This
->
lastActiveRenderTarget
!=
target
||
tid
!=
This
->
lastThread
)
{
if
(
This
->
activeContext
->
current_rt
!=
target
||
tid
!=
This
->
lastThread
)
{
context
=
FindContext
(
This
,
target
,
tid
);
context
->
draw_buffer_dirty
=
TRUE
;
context
->
current_rt
=
target
;
This
->
lastActiveRenderTarget
=
target
;
This
->
lastThread
=
tid
;
}
else
{
/* Stick to the old context */
...
...
dlls/wined3d/device.c
View file @
2d750060
...
...
@@ -2158,12 +2158,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface,
if
(
swapchain
->
backBuffer
&&
swapchain
->
backBuffer
[
0
])
{
TRACE
(
"Setting rendertarget to %p
\n
"
,
swapchain
->
backBuffer
);
This
->
render_targets
[
0
]
=
swapchain
->
backBuffer
[
0
];
This
->
lastActiveRenderTarget
=
swapchain
->
backBuffer
[
0
];
}
else
{
TRACE
(
"Setting rendertarget to %p
\n
"
,
swapchain
->
frontBuffer
);
This
->
render_targets
[
0
]
=
swapchain
->
frontBuffer
;
This
->
lastActiveRenderTarget
=
swapchain
->
frontBuffer
;
}
IWineD3DSurface_AddRef
(
This
->
render_targets
[
0
]);
This
->
activeContext
=
swapchain
->
context
[
0
];
...
...
dlls/wined3d/wined3d_private.h
View file @
2d750060
...
...
@@ -1535,9 +1535,6 @@ struct IWineD3DDeviceImpl
IWineD3DSurface
*
auto_depth_stencil_buffer
;
IWineD3DSurface
*
stencilBufferTarget
;
/* Caches to avoid unneeded context changes */
IWineD3DSurface
*
lastActiveRenderTarget
;
/* palettes texture management */
UINT
NumberOfPalettes
;
PALETTEENTRY
**
palettes
;
...
...
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