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
577dbb57
Commit
577dbb57
authored
Dec 19, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Dec 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move storing the render target from ActiveRender to SetRenderTarget.
Use the render target index rather than hardcoding 0.
parent
8355b1a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
device.c
dlls/wined3d/device.c
+6
-7
No files found.
dlls/wined3d/device.c
View file @
577dbb57
...
...
@@ -5871,6 +5871,12 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
implementations that use separate pbuffers for different swapchains or rendertargets will have to duplicate the
stencil buffer and incure an extra memory overhead */
hr
=
IWineD3DDeviceImpl_ActiveRender
(
iface
,
pRenderTarget
);
/* Replace the render target */
if
(
This
->
render_targets
[
RenderTargetIndex
])
IWineD3DSurface_Release
(
This
->
render_targets
[
RenderTargetIndex
]);
This
->
render_targets
[
RenderTargetIndex
]
=
pRenderTarget
;
if
(
pRenderTarget
)
IWineD3DSurface_AddRef
(
pRenderTarget
);
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
set_render_target_fbo
(
iface
,
pRenderTarget
);
}
...
...
@@ -6352,13 +6358,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ActiveRender(IWineD3DDevice* iface,
device_render_to_texture
(
This
,
TRUE
);
}
/* Replace the render target */
if
(
This
->
render_targets
[
0
]
!=
RenderSurface
)
{
IWineD3DSurface_Release
(
This
->
render_targets
[
0
]);
This
->
render_targets
[
0
]
=
RenderSurface
;
IWineD3DSurface_AddRef
(
RenderSurface
);
}
if
(
cfgs
!=
NULL
)
XFree
(
cfgs
);
if
(
implicitSwapchain
!=
NULL
)
IWineD3DSwapChain_Release
(
implicitSwapchain
);
if
(
currentSwapchain
!=
NULL
)
IWineD3DSwapChain_Release
(
currentSwapchain
);
...
...
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