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
e0d6ca57
Commit
e0d6ca57
authored
May 18, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 18, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Check for offscreen contexts inside context_validate_onscreen_formats() itself.
parent
4889c33d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
context.c
dlls/wined3d/context.c
+4
-4
No files found.
dlls/wined3d/context.c
View file @
e0d6ca57
...
...
@@ -1973,7 +1973,7 @@ static void context_validate_onscreen_formats(IWineD3DDeviceImpl *device,
/* Onscreen surfaces are always in a swapchain */
IWineD3DSwapChainImpl
*
swapchain
=
(
IWineD3DSwapChainImpl
*
)
context
->
current_rt
->
container
;
if
(
!
depth_stencil
)
return
;
if
(
context
->
render_offscreen
||
!
depth_stencil
)
return
;
if
(
match_depth_stencil_format
(
swapchain
->
ds_format
,
depth_stencil
->
resource
.
format_desc
))
return
;
/* TODO: If the requested format would satisfy the needs of the existing one(reverse match),
...
...
@@ -1992,7 +1992,7 @@ void context_apply_blit_state(struct wined3d_context *context, IWineD3DDeviceImp
{
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
!
context
->
render_offscreen
)
context_validate_onscreen_formats
(
device
,
context
,
NULL
);
context_validate_onscreen_formats
(
device
,
context
,
NULL
);
if
(
context
->
render_offscreen
)
{
...
...
@@ -2032,7 +2032,7 @@ void context_apply_clear_state(struct wined3d_context *context, IWineD3DDeviceIm
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
!
context
->
render_offscreen
)
context_validate_onscreen_formats
(
device
,
context
,
depth_stencil
);
context_validate_onscreen_formats
(
device
,
context
,
depth_stencil
);
ENTER_GL
();
context_apply_fbo_state_blit
(
context
,
GL_FRAMEBUFFER
,
render_target
,
depth_stencil
);
...
...
@@ -2078,7 +2078,7 @@ void context_apply_draw_state(struct wined3d_context *context, IWineD3DDeviceImp
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
!
context
->
render_offscreen
)
context_validate_onscreen_formats
(
device
,
context
,
device
->
depth_stencil
);
context_validate_onscreen_formats
(
device
,
context
,
device
->
depth_stencil
);
if
(
!
context
->
render_offscreen
)
{
...
...
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