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
a80247f5
Commit
a80247f5
authored
Jul 17, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid redundant FBO binds.
Apparently this is an expensive operation for certain drivers, even if the binding doesn't actually change.
parent
710f6f84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
context.c
dlls/wined3d/context.c
+24
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-0
No files found.
dlls/wined3d/context.c
View file @
a80247f5
...
...
@@ -64,6 +64,30 @@ void context_bind_fbo(struct WineD3DContext *context, GLenum target, GLuint *fbo
f
=
*
fbo
;
}
switch
(
target
)
{
case
GL_READ_FRAMEBUFFER_EXT
:
if
(
context
->
fbo_read_binding
==
f
)
return
;
context
->
fbo_read_binding
=
f
;
break
;
case
GL_DRAW_FRAMEBUFFER_EXT
:
if
(
context
->
fbo_draw_binding
==
f
)
return
;
context
->
fbo_draw_binding
=
f
;
break
;
case
GL_FRAMEBUFFER_EXT
:
if
(
context
->
fbo_read_binding
==
f
&&
context
->
fbo_draw_binding
==
f
)
return
;
context
->
fbo_read_binding
=
f
;
context
->
fbo_draw_binding
=
f
;
break
;
default:
FIXME
(
"Unhandled target %#x.
\n
"
,
target
);
break
;
}
GL_EXTCALL
(
glBindFramebufferEXT
(
target
,
f
));
checkGLcall
(
"glBindFramebuffer()"
);
}
...
...
dlls/wined3d/wined3d_private.h
View file @
a80247f5
...
...
@@ -1242,6 +1242,8 @@ struct WineD3DContext
struct
fbo_entry
*
current_fbo
;
GLuint
src_fbo
;
GLuint
dst_fbo
;
GLuint
fbo_read_binding
;
GLuint
fbo_draw_binding
;
/* Extension emulation */
GLint
gl_fog_source
;
...
...
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