projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The optimization of skipping the rendering of the layer's context only works for...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
context.cpp
diff --git
a/synfig-core/trunk/src/synfig/context.cpp
b/synfig-core/trunk/src/synfig/context.cpp
index
d16c06b
..
144eba7
100644
(file)
--- a/
synfig-core/trunk/src/synfig/context.cpp
+++ b/
synfig-core/trunk/src/synfig/context.cpp
@@
-215,7
+215,7
@@
Context::accelerated_render(Surface *surface,int quality, const RendDesc &rendde
// is 1.0, and the layer doesn't depend on its context, then
// we don't want to render the context
if (composite &&
// is 1.0, and the layer doesn't depend on its context, then
// we don't want to render the context
if (composite &&
-
Color::is_straight(composite->get_blend_method())
&&
+
composite->get_blend_method() == Color::BLEND_STRAIGHT
&&
composite->get_amount() == 1.0f &&
!composite->reads_context())
{
composite->get_amount() == 1.0f &&
!composite->reads_context())
{
@@
-272,7
+272,7
@@
Context::accelerated_render(Surface *surface,int quality, const RendDesc &rendde
Surface::alpha_pen apen(surface->begin());
apen.set_alpha(composite->get_amount());
Surface::alpha_pen apen(surface->begin());
apen.set_alpha(composite->get_amount());
- apen.set_blend_method(
Color::BLEND_STRAIGHT
);
+ apen.set_blend_method(
composite->get_blend_method()
);
clearsurface.blit_to(apen);
}
clearsurface.blit_to(apen);
}