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
47c5711f
Commit
47c5711f
authored
Aug 24, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use draw_binding in context_apply_blit_state().
parent
f0d8f2aa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
context.c
dlls/wined3d/context.c
+6
-5
No files found.
dlls/wined3d/context.c
View file @
47c5711f
...
...
@@ -1947,6 +1947,7 @@ static DWORD context_generate_rt_mask_no_fbo(const struct wined3d_device *device
/* Context activation is done by the caller. */
void
context_apply_blit_state
(
struct
wined3d_context
*
context
,
struct
wined3d_device
*
device
)
{
struct
wined3d_surface
*
rt
=
context
->
current_rt
;
DWORD
rt_mask
,
old_mask
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
...
...
@@ -1955,12 +1956,12 @@ void context_apply_blit_state(struct wined3d_context *context, struct wined3d_de
if
(
context
->
render_offscreen
)
{
surface_internal_preload
(
context
->
current_
rt
,
SRGB_RGB
);
surface_internal_preload
(
rt
,
SRGB_RGB
);
ENTER_GL
();
context_apply_fbo_state_blit
(
context
,
GL_FRAMEBUFFER
,
context
->
current_rt
,
NULL
,
SFLAG_INTEXTURE
);
context_apply_fbo_state_blit
(
context
,
GL_FRAMEBUFFER
,
rt
,
NULL
,
rt
->
draw_binding
);
LEAVE_GL
();
if
(
context
->
current_rt
&&
context
->
current_
rt
->
resource
.
format
->
id
!=
WINED3DFMT_NULL
)
if
(
rt
&&
rt
->
resource
.
format
->
id
!=
WINED3DFMT_NULL
)
rt_mask
=
1
;
else
rt_mask
=
0
;
...
...
@@ -1970,12 +1971,12 @@ void context_apply_blit_state(struct wined3d_context *context, struct wined3d_de
ENTER_GL
();
context_bind_fbo
(
context
,
GL_FRAMEBUFFER
,
NULL
);
LEAVE_GL
();
rt_mask
=
context_generate_rt_mask_from_surface
(
context
->
current_
rt
);
rt_mask
=
context_generate_rt_mask_from_surface
(
rt
);
}
}
else
{
rt_mask
=
context_generate_rt_mask_no_fbo
(
device
,
context
->
current_
rt
);
rt_mask
=
context_generate_rt_mask_no_fbo
(
device
,
rt
);
}
old_mask
=
context
->
current_fbo
?
context
->
current_fbo
->
rt_mask
:
context
->
draw_buffers_mask
;
...
...
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