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
439097c8
Commit
439097c8
authored
Mar 28, 2012
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Update the correct draw buffers mask.
parent
21f5ef28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
context.c
dlls/wined3d/context.c
+16
-16
No files found.
dlls/wined3d/context.c
View file @
439097c8
...
...
@@ -2041,7 +2041,7 @@ static DWORD context_generate_rt_mask_no_fbo(const struct wined3d_device *device
void
context_apply_blit_state
(
struct
wined3d_context
*
context
,
const
struct
wined3d_device
*
device
)
{
struct
wined3d_surface
*
rt
=
context
->
current_rt
;
DWORD
rt_mask
,
old
_mask
;
DWORD
rt_mask
,
*
cur
_mask
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
...
...
@@ -2072,13 +2072,13 @@ void context_apply_blit_state(struct wined3d_context *context, const struct wine
rt_mask
=
context_generate_rt_mask_no_fbo
(
device
,
rt
);
}
old_mask
=
context
->
current_fbo
?
context
->
current_fbo
->
rt_mask
:
context
->
draw_buffers_mask
;
cur_mask
=
context
->
current_fbo
?
&
context
->
current_fbo
->
rt_mask
:
&
context
->
draw_buffers_mask
;
ENTER_GL
();
if
(
rt_mask
!=
old
_mask
)
if
(
rt_mask
!=
*
cur
_mask
)
{
context_apply_draw_buffers
(
context
,
rt_mask
);
context
->
draw_buffers
_mask
=
rt_mask
;
*
cur
_mask
=
rt_mask
;
}
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
...
...
@@ -2112,7 +2112,7 @@ static BOOL context_validate_rt_config(UINT rt_count,
BOOL
context_apply_clear_state
(
struct
wined3d_context
*
context
,
const
struct
wined3d_device
*
device
,
UINT
rt_count
,
const
struct
wined3d_fb_state
*
fb
)
{
DWORD
rt_mask
=
0
,
old
_mask
;
DWORD
rt_mask
=
0
,
*
cur
_mask
;
UINT
i
;
struct
wined3d_surface
**
rts
=
fb
->
render_targets
;
...
...
@@ -2177,13 +2177,13 @@ BOOL context_apply_clear_state(struct wined3d_context *context, const struct win
rt_mask
=
context_generate_rt_mask_no_fbo
(
device
,
rt_count
?
rts
[
0
]
:
NULL
);
}
old_mask
=
context
->
current_fbo
?
context
->
current_fbo
->
rt_mask
:
context
->
draw_buffers_mask
;
cur_mask
=
context
->
current_fbo
?
&
context
->
current_fbo
->
rt_mask
:
&
context
->
draw_buffers_mask
;
ENTER_GL
();
if
(
rt_mask
!=
old
_mask
)
if
(
rt_mask
!=
*
cur
_mask
)
{
context_apply_draw_buffers
(
context
,
rt_mask
);
context
->
draw_buffers
_mask
=
rt_mask
;
*
cur
_mask
=
rt_mask
;
context_invalidate_state
(
context
,
STATE_FRAMEBUFFER
);
}
...
...
@@ -2246,7 +2246,7 @@ void context_state_fb(struct wined3d_context *context, const struct wined3d_stat
const
struct
wined3d_device
*
device
=
context
->
swapchain
->
device
;
const
struct
wined3d_fb_state
*
fb
=
state
->
fb
;
DWORD
rt_mask
=
find_draw_buffers_mask
(
context
,
device
);
DWORD
old
_mask
;
DWORD
*
cur
_mask
;
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
...
...
@@ -2263,11 +2263,11 @@ void context_state_fb(struct wined3d_context *context, const struct wined3d_stat
}
}
old_mask
=
context
->
current_fbo
?
context
->
current_fbo
->
rt_mask
:
context
->
draw_buffers_mask
;
if
(
rt_mask
!=
old
_mask
)
cur_mask
=
context
->
current_fbo
?
&
context
->
current_fbo
->
rt_mask
:
&
context
->
draw_buffers_mask
;
if
(
rt_mask
!=
*
cur
_mask
)
{
context_apply_draw_buffers
(
context
,
rt_mask
);
context
->
draw_buffers
_mask
=
rt_mask
;
*
cur
_mask
=
rt_mask
;
}
}
...
...
@@ -2275,16 +2275,16 @@ void context_state_fb(struct wined3d_context *context, const struct wined3d_stat
void
context_state_drawbuf
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
const
struct
wined3d_device
*
device
=
context
->
swapchain
->
device
;
DWORD
rt_mask
,
old
_mask
;
DWORD
rt_mask
,
*
cur
_mask
;
if
(
isStateDirty
(
context
,
STATE_FRAMEBUFFER
))
return
;
old_mask
=
context
->
current_fbo
?
context
->
current_fbo
->
rt_mask
:
context
->
draw_buffers_mask
;
cur_mask
=
context
->
current_fbo
?
&
context
->
current_fbo
->
rt_mask
:
&
context
->
draw_buffers_mask
;
rt_mask
=
find_draw_buffers_mask
(
context
,
device
);
if
(
rt_mask
!=
old
_mask
)
if
(
rt_mask
!=
*
cur
_mask
)
{
context_apply_draw_buffers
(
context
,
rt_mask
);
context
->
draw_buffers
_mask
=
rt_mask
;
*
cur
_mask
=
rt_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