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
c1450356
Commit
c1450356
authored
Aug 07, 2010
by
Matteo Bruni
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix context_apply_clear_state with ORM = backbuffer.
parent
e0528084
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
context.c
dlls/wined3d/context.c
+19
-12
No files found.
dlls/wined3d/context.c
View file @
c1450356
...
...
@@ -1972,7 +1972,7 @@ static void context_apply_draw_buffer(struct wined3d_context *context, BOOL blit
{
ENTER_GL
();
glDrawBuffer
(
surface_get_gl_buffer
(
rt
));
checkGLcall
(
"glDrawBuffer
s
()"
);
checkGLcall
(
"glDrawBuffer()"
);
LEAVE_GL
();
}
else
...
...
@@ -2172,22 +2172,29 @@ void context_apply_clear_state(struct wined3d_context *context, IWineD3DDeviceIm
}
else
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
ENTER_GL
()
;
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
i
<
rt_count
&&
rts
[
i
])
context
->
draw_buffers
[
i
]
=
GL_COLOR_ATTACHMENT0
+
i
;
else
context
->
draw_buffers
[
i
]
=
GL_NONE
;
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()"
);
}
ENTER_GL
();
GL_EXTCALL
(
glDrawBuffersARB
(
gl_info
->
limits
.
buffers
,
context
->
draw_buffers
));
checkGLcall
(
"glDrawBuffers()"
);
LEAVE_GL
();
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