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
43d2515d
Commit
43d2515d
authored
Jul 24, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use the "rts" variable in context_apply_clear_state().
parent
e5036e36
Hide 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 @
43d2515d
...
@@ -2076,7 +2076,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
...
@@ -2076,7 +2076,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
if
(
isStateDirty
(
context
,
STATE_FRAMEBUFFER
)
||
fb
!=
&
device
->
fb
if
(
isStateDirty
(
context
,
STATE_FRAMEBUFFER
)
||
fb
!=
&
device
->
fb
||
rt_count
!=
context
->
gl_info
->
limits
.
buffers
)
||
rt_count
!=
context
->
gl_info
->
limits
.
buffers
)
{
{
if
(
!
context_validate_rt_config
(
rt_count
,
fb
->
render_targe
ts
,
fb
->
depth_stencil
))
if
(
!
context_validate_rt_config
(
rt_count
,
r
ts
,
fb
->
depth_stencil
))
return
FALSE
;
return
FALSE
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
...
@@ -2085,7 +2085,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
...
@@ -2085,7 +2085,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
ENTER_GL
();
ENTER_GL
();
if
(
!
rt_count
||
surface_is_offscreen
(
fb
->
render_targe
ts
[
0
]))
if
(
!
rt_count
||
surface_is_offscreen
(
r
ts
[
0
]))
{
{
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
{
{
...
@@ -2105,7 +2105,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
...
@@ -2105,7 +2105,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
else
else
{
{
context_apply_fbo_state
(
context
,
GL_FRAMEBUFFER
,
NULL
,
NULL
,
SFLAG_INDRAWABLE
);
context_apply_fbo_state
(
context
,
GL_FRAMEBUFFER
,
NULL
,
NULL
,
SFLAG_INDRAWABLE
);
rt_mask
=
context_generate_rt_mask_from_surface
(
fb
->
render_targe
ts
[
0
]);
rt_mask
=
context_generate_rt_mask_from_surface
(
r
ts
[
0
]);
}
}
LEAVE_GL
();
LEAVE_GL
();
...
@@ -2121,7 +2121,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
...
@@ -2121,7 +2121,7 @@ BOOL context_apply_clear_state(struct wined3d_context *context, struct wined3d_d
}
}
}
}
else
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
else
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
&&
(
!
rt_count
||
surface_is_offscreen
(
fb
->
render_targe
ts
[
0
])))
&&
(
!
rt_count
||
surface_is_offscreen
(
r
ts
[
0
])))
{
{
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
{
{
...
...
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