forked from organicmaps/organicmaps
flushing Screen before rendering DisplayList for correct primitives ordering.
This commit is contained in:
parent
6b18ff3576
commit
138e1633a6
5 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -824,5 +824,10 @@ namespace yg
|
|||
flush(-1);
|
||||
base_t::setDisplayList(displayList);
|
||||
}
|
||||
|
||||
void GeometryBatcher::flush()
|
||||
{
|
||||
flush(-1);
|
||||
}
|
||||
} // namespace gl
|
||||
} // namespace yg
|
||||
|
|
|
@ -215,6 +215,8 @@ namespace yg
|
|||
void clearAdditionalSkinPage();
|
||||
|
||||
void setDisplayList(DisplayList * displayList);
|
||||
|
||||
void flush();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -301,5 +301,8 @@ namespace yg
|
|||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
void Renderer::flush()
|
||||
{}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -157,6 +157,8 @@ namespace yg
|
|||
|
||||
void setEnvironment(core::CommandsQueue::Environment const * env);
|
||||
bool isCancelled() const;
|
||||
|
||||
virtual void flush();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue