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
734b31e0
Commit
734b31e0
authored
Sep 18, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Handle drawbuffers in context_apply_fbo_state() instead of…
wined3d: Handle drawbuffers in context_apply_fbo_state() instead of context_set_render_target_fbo().
parent
9533a5cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
context.c
dlls/wined3d/context.c
+8
-3
No files found.
dlls/wined3d/context.c
View file @
734b31e0
...
...
@@ -187,12 +187,9 @@ static void context_set_render_target_fbo(IWineD3DDevice *iface, DWORD idx, IWin
if
(
render_target
)
{
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
idx
,
render_target
);
This
->
draw_buffers
[
idx
]
=
GL_COLOR_ATTACHMENT0_EXT
+
idx
;
}
else
{
GL_EXTCALL
(
glFramebufferTexture2DEXT
(
GL_FRAMEBUFFER_EXT
,
GL_COLOR_ATTACHMENT0_EXT
+
idx
,
GL_TEXTURE_2D
,
0
,
0
));
checkGLcall
(
"glFramebufferTexture2DEXT()"
);
This
->
draw_buffers
[
idx
]
=
GL_NONE
;
}
}
...
...
@@ -281,6 +278,14 @@ void context_apply_fbo_state(IWineD3DDevice *iface)
context_set_depth_stencil_fbo
(
iface
,
This
->
stencilBufferTarget
);
context
->
fbo_depth_attachment
=
This
->
stencilBufferTarget
;
}
for
(
i
=
0
;
i
<
GL_LIMITS
(
buffers
);
++
i
)
{
if
(
This
->
render_targets
[
i
])
This
->
draw_buffers
[
i
]
=
GL_COLOR_ATTACHMENT0_EXT
+
i
;
else
This
->
draw_buffers
[
i
]
=
GL_NONE
;
}
}
else
{
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
));
}
...
...
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