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
465e8f66
Commit
465e8f66
authored
May 19, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Explicitly pass the FBO target to context_clean_fbo_attachments().
This should have been part of
e01d56f3
.
parent
0fe7b45b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
context.c
dlls/wined3d/context.c
+6
-6
No files found.
dlls/wined3d/context.c
View file @
465e8f66
...
...
@@ -84,19 +84,19 @@ void context_bind_fbo(struct wined3d_context *context, GLenum target, GLuint *fb
}
/* GL locking is done by the caller */
static
void
context_clean_fbo_attachments
(
const
struct
wined3d_gl_info
*
gl_info
)
static
void
context_clean_fbo_attachments
(
const
struct
wined3d_gl_info
*
gl_info
,
GLenum
target
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
gl_info
->
limits
.
buffers
;
++
i
)
{
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
GL_FRAMEBUFFER
,
GL_COLOR_ATTACHMENT0
+
i
,
GL_TEXTURE_2D
,
0
,
0
);
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
target
,
GL_COLOR_ATTACHMENT0
+
i
,
GL_TEXTURE_2D
,
0
,
0
);
checkGLcall
(
"glFramebufferTexture2D()"
);
}
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
GL_FRAMEBUFFER
,
GL_DEPTH_ATTACHMENT
,
GL_TEXTURE_2D
,
0
,
0
);
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
target
,
GL_DEPTH_ATTACHMENT
,
GL_TEXTURE_2D
,
0
,
0
);
checkGLcall
(
"glFramebufferTexture2D()"
);
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
GL_FRAMEBUFFER
,
GL_STENCIL_ATTACHMENT
,
GL_TEXTURE_2D
,
0
,
0
);
gl_info
->
fbo_ops
.
glFramebufferTexture2D
(
target
,
GL_STENCIL_ATTACHMENT
,
GL_TEXTURE_2D
,
0
,
0
);
checkGLcall
(
"glFramebufferTexture2D()"
);
}
...
...
@@ -106,7 +106,7 @@ static void context_destroy_fbo(struct wined3d_context *context, GLuint *fbo)
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
context_bind_fbo
(
context
,
GL_FRAMEBUFFER
,
fbo
);
context_clean_fbo_attachments
(
gl_info
);
context_clean_fbo_attachments
(
gl_info
,
GL_FRAMEBUFFER
);
context_bind_fbo
(
context
,
GL_FRAMEBUFFER
,
NULL
);
gl_info
->
fbo_ops
.
glDeleteFramebuffers
(
1
,
fbo
);
...
...
@@ -342,7 +342,7 @@ static void context_reuse_fbo_entry(struct wined3d_context *context, GLenum targ
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
context_bind_fbo
(
context
,
target
,
&
entry
->
id
);
context_clean_fbo_attachments
(
gl_info
);
context_clean_fbo_attachments
(
gl_info
,
target
);
memcpy
(
entry
->
render_targets
,
render_targets
,
gl_info
->
limits
.
buffers
*
sizeof
(
*
entry
->
render_targets
));
entry
->
depth_stencil
=
depth_stencil
;
...
...
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