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
bda63dd4
Commit
bda63dd4
authored
Apr 26, 2013
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 26, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set GL_NONE for glReadBuffer / glDrawBuffer on FBO initialization.
parent
896ff537
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
context.c
dlls/wined3d/context.c
+21
-2
No files found.
dlls/wined3d/context.c
View file @
bda63dd4
...
...
@@ -424,10 +424,17 @@ static void context_apply_fbo_entry(struct wined3d_context *context, GLenum targ
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
unsigned
int
i
;
GLuint
read_binding
,
draw_binding
;
context_bind_fbo
(
context
,
target
,
&
entry
->
id
);
if
(
entry
->
attached
)
{
context_bind_fbo
(
context
,
target
,
&
entry
->
id
);
return
;
}
if
(
entry
->
attached
)
return
;
read_binding
=
context
->
fbo_read_binding
;
draw_binding
=
context
->
fbo_draw_binding
;
context_bind_fbo
(
context
,
GL_FRAMEBUFFER
,
&
entry
->
id
);
/* Apply render targets */
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
...
...
@@ -440,6 +447,18 @@ static void context_apply_fbo_entry(struct wined3d_context *context, GLenum targ
surface_set_compatible_renderbuffer
(
entry
->
depth_stencil
,
entry
->
render_targets
[
0
]);
context_attach_depth_stencil_fbo
(
context
,
target
,
entry
->
depth_stencil
,
entry
->
location
);
/* Set valid read and draw buffer bindings to satisfy pedantic pre-ES2_compatibility
* GL contexts requirements. */
glReadBuffer
(
GL_NONE
);
context_set_draw_buffer
(
context
,
GL_NONE
);
if
(
target
!=
GL_FRAMEBUFFER
)
{
if
(
target
==
GL_READ_FRAMEBUFFER
)
context_bind_fbo
(
context
,
GL_DRAW_FRAMEBUFFER
,
draw_binding
?
&
draw_binding
:
NULL
);
else
context_bind_fbo
(
context
,
GL_READ_FRAMEBUFFER
,
read_binding
?
&
read_binding
:
NULL
);
}
entry
->
attached
=
TRUE
;
}
...
...
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