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
98277e1f
Commit
98277e1f
authored
Aug 25, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simplify context_apply_fbo_state_blit().
parent
d15d45e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
context.c
dlls/wined3d/context.c
+6
-11
No files found.
dlls/wined3d/context.c
View file @
98277e1f
...
@@ -431,17 +431,12 @@ static void context_apply_fbo_state(struct wined3d_context *context, GLenum targ
...
@@ -431,17 +431,12 @@ static void context_apply_fbo_state(struct wined3d_context *context, GLenum targ
void
context_apply_fbo_state_blit
(
struct
wined3d_context
*
context
,
GLenum
target
,
void
context_apply_fbo_state_blit
(
struct
wined3d_context
*
context
,
GLenum
target
,
struct
wined3d_surface
*
render_target
,
struct
wined3d_surface
*
depth_stencil
,
DWORD
location
)
struct
wined3d_surface
*
render_target
,
struct
wined3d_surface
*
depth_stencil
,
DWORD
location
)
{
{
if
(
location
!=
SFLAG_INDRAWABLE
||
surface_is_offscreen
(
render_target
))
UINT
clear_size
=
(
context
->
gl_info
->
limits
.
buffers
-
1
)
*
sizeof
(
*
context
->
blit_targets
);
{
UINT
clear_size
=
(
context
->
gl_info
->
limits
.
buffers
-
1
)
*
sizeof
(
*
context
->
blit_targets
);
context
->
blit_targets
[
0
]
=
render_target
;
context
->
blit_targets
[
0
]
=
render_target
;
if
(
clear_size
)
if
(
clear_size
)
memset
(
&
context
->
blit_targets
[
1
],
0
,
clear_size
);
memset
(
&
context
->
blit_targets
[
1
],
0
,
clear_size
);
context_apply_fbo_state
(
context
,
target
,
context
->
blit_targets
,
depth_stencil
,
location
);
context_apply_fbo_state
(
context
,
target
,
context
->
blit_targets
,
depth_stencil
,
location
);
}
else
{
context_apply_fbo_state
(
context
,
target
,
NULL
,
NULL
,
location
);
}
}
}
/* Context activation is done by the caller. */
/* Context activation is done by the caller. */
...
...
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