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
2f3c147a
Commit
2f3c147a
authored
Apr 08, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 11, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only set draw buffers that are explicitly specified in context_apply_draw_buffers().
Anything that isn't explicitly specified is set to GL_NONE by glDrawBuffersARB().
parent
bf99c024
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
context.c
dlls/wined3d/context.c
+3
-3
No files found.
dlls/wined3d/context.c
View file @
2f3c147a
...
...
@@ -1937,9 +1937,9 @@ static void context_apply_draw_buffers(struct wined3d_context *context, UINT rt_
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
for
(
i
=
0
;
i
<
rt_count
;
++
i
)
{
if
(
i
<
rt_count
&&
rts
[
i
]
&&
rts
[
i
]
->
resource
.
format
->
id
!=
WINED3DFMT_NULL
)
if
(
rts
[
i
]
&&
rts
[
i
]
->
resource
.
format
->
id
!=
WINED3DFMT_NULL
)
context
->
draw_buffers
[
i
]
=
GL_COLOR_ATTACHMENT0
+
i
;
else
context
->
draw_buffers
[
i
]
=
GL_NONE
;
...
...
@@ -1947,7 +1947,7 @@ static void context_apply_draw_buffers(struct wined3d_context *context, UINT rt_
if
(
gl_info
->
supported
[
ARB_DRAW_BUFFERS
])
{
GL_EXTCALL
(
glDrawBuffersARB
(
gl_info
->
limits
.
buffers
,
context
->
draw_buffers
));
GL_EXTCALL
(
glDrawBuffersARB
(
rt_count
,
context
->
draw_buffers
));
checkGLcall
(
"glDrawBuffers()"
);
}
else
...
...
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