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
2ee6bb1c
Commit
2ee6bb1c
authored
Dec 14, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Frontbuffers are onscreen.
parent
9500df82
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
context.c
dlls/wined3d/context.c
+2
-1
device.c
dlls/wined3d/device.c
+0
-1
swapchain.c
dlls/wined3d/swapchain.c
+0
-2
No files found.
dlls/wined3d/context.c
View file @
2ee6bb1c
...
...
@@ -1348,6 +1348,7 @@ struct wined3d_context *context_create(IWineD3DDeviceImpl *This, IWineD3DSurface
ret
->
gl_info
=
&
This
->
adapter
->
gl_info
;
ret
->
surface
=
(
IWineD3DSurface
*
)
target
;
ret
->
current_rt
=
(
IWineD3DSurface
*
)
target
;
ret
->
render_offscreen
=
surface_is_offscreen
((
IWineD3DSurface
*
)
target
);
ret
->
tid
=
GetCurrentThreadId
();
if
(
This
->
shader_backend
->
shader_dirtifyable_constants
((
IWineD3DDevice
*
)
This
))
{
/* Create the dirty constants array and initialize them to dirty */
...
...
@@ -1893,7 +1894,7 @@ static inline struct wined3d_context *FindContext(IWineD3DDeviceImpl *This, IWin
context
=
findThreadContextForSwapChain
(
swapchain
,
tid
);
old_render_offscreen
=
context
->
render_offscreen
;
context
->
render_offscreen
=
((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
render_to_fbo
;
context
->
render_offscreen
=
surface_is_offscreen
(
target
)
;
/* The context != This->activeContext will catch a NOP context change. This can occur
* if we are switching back to swapchain rendering in case of FBO or Back Buffer offscreen
* rendering. No context change is needed in that case
...
...
dlls/wined3d/device.c
View file @
2ee6bb1c
...
...
@@ -6297,7 +6297,6 @@ HRESULT create_primary_opengl_context(IWineD3DDevice *iface, IWineD3DSwapChain *
}
swapchain
->
context
[
0
]
=
context_create
(
This
,
target
,
swapchain
->
win_handle
,
FALSE
,
&
swapchain
->
presentParms
);
swapchain
->
num_contexts
=
1
;
swapchain
->
context
[
0
]
->
render_offscreen
=
swapchain
->
render_to_fbo
;
create_dummy_textures
(
This
);
...
...
dlls/wined3d/swapchain.c
View file @
2ee6bb1c
...
...
@@ -809,8 +809,6 @@ HRESULT swapchain_init(IWineD3DSwapChainImpl *swapchain, WINED3DSURFTYPE surface
hr
=
WINED3DERR_NOTAVAILABLE
;
goto
err
;
}
swapchain
->
context
[
0
]
->
render_offscreen
=
swapchain
->
render_to_fbo
;
}
else
{
...
...
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