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
9363ea55
Commit
9363ea55
authored
Aug 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Simply use context_apply_draw_buffers() in context_apply_clear_state().
parent
08101957
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
32 deletions
+2
-32
context.c
dlls/wined3d/context.c
+2
-32
No files found.
dlls/wined3d/context.c
View file @
9363ea55
...
...
@@ -2154,38 +2154,8 @@ void context_apply_clear_state(struct wined3d_context *context, IWineD3DDeviceIm
LEAVE_GL
();
}
if
(
!
surface_is_offscreen
(
rts
[
0
]))
{
ENTER_GL
();
context_set_draw_buffer
(
context
,
surface_get_gl_buffer
(
rts
[
0
]));
LEAVE_GL
();
}
else
{
ENTER_GL
();
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
{
if
(
i
<
rt_count
&&
rts
[
i
])
context
->
draw_buffers
[
i
]
=
GL_COLOR_ATTACHMENT0
+
i
;
else
context
->
draw_buffers
[
i
]
=
GL_NONE
;
}
GL_EXTCALL
(
glDrawBuffersARB
(
gl_info
->
limits
.
buffers
,
context
->
draw_buffers
));
checkGLcall
(
"glDrawBuffers()"
);
context
->
draw_buffer_dirty
=
TRUE
;
}
else
{
glDrawBuffer
(
device
->
offscreenBuffer
);
checkGLcall
(
"glDrawBuffer()"
);
}
LEAVE_GL
();
}
context_apply_draw_buffers
(
context
,
rt_count
,
rts
);
context
->
draw_buffer_dirty
=
TRUE
;
if
(
context
->
last_was_blit
)
{
...
...
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