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
718e55b9
Commit
718e55b9
authored
Dec 15, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Don't render single buffered swapchains to a FBO.
parent
6f2ec37b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
device.c
dlls/wined3d/device.c
+7
-2
swapchain.c
dlls/wined3d/swapchain.c
+1
-0
No files found.
dlls/wined3d/device.c
View file @
718e55b9
...
...
@@ -6527,8 +6527,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
RECT
client_rect
;
GetClientRect
(
swapchain
->
win_handle
,
&
client_rect
);
if
(
swapchain
->
presentParms
.
BackBufferWidth
!=
client_rect
.
right
||
swapchain
->
presentParms
.
BackBufferHeight
!=
client_rect
.
bottom
)
if
(
!
swapchain
->
presentParms
.
BackBufferCount
)
{
TRACE
(
"Single buffered rendering
\n
"
);
swapchain
->
render_to_fbo
=
FALSE
;
}
else
if
(
swapchain
->
presentParms
.
BackBufferWidth
!=
client_rect
.
right
||
swapchain
->
presentParms
.
BackBufferHeight
!=
client_rect
.
bottom
)
{
TRACE
(
"Rendering to FBO. Backbuffer %ux%u, window %ux%u
\n
"
,
swapchain
->
presentParms
.
BackBufferWidth
,
...
...
dlls/wined3d/swapchain.c
View file @
718e55b9
...
...
@@ -739,6 +739,7 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
swapchain
->
presentParms
=
*
present_parameters
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
&&
present_parameters
->
BackBufferCount
&&
(
present_parameters
->
BackBufferWidth
!=
client_rect
.
right
||
present_parameters
->
BackBufferHeight
!=
client_rect
.
bottom
))
{
...
...
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