flushing Screen before rendering DisplayList for correct primitives ordering.

This commit is contained in:
rachytski 2012-09-27 14:19:02 +03:00 committed by Alex Zolotarev
parent 6b18ff3576
commit 138e1633a6
5 changed files with 14 additions and 0 deletions

View file

@ -91,6 +91,8 @@ namespace yg
void DisplayList::draw(math::Matrix<double, 3, 3> const & m)
{
m_parent->flush();
math::Matrix<float, 4, 4> mv;
/// preparing ModelView matrix

View file

@ -824,5 +824,10 @@ namespace yg
flush(-1);
base_t::setDisplayList(displayList);
}
void GeometryBatcher::flush()
{
flush(-1);
}
} // namespace gl
} // namespace yg

View file

@ -215,6 +215,8 @@ namespace yg
void clearAdditionalSkinPage();
void setDisplayList(DisplayList * displayList);
void flush();
};
}
}

View file

@ -301,5 +301,8 @@ namespace yg
else
return false;
}
void Renderer::flush()
{}
}
}

View file

@ -157,6 +157,8 @@ namespace yg
void setEnvironment(core::CommandsQueue::Environment const * env);
bool isCancelled() const;
virtual void flush();
};
}
}