Following kkaefer's view changes

This commit is contained in:
John Firebaugh
2015-04-21 15:02:30 -07:00
parent 75ae956b0e
commit 6c7a01a503
11 changed files with 18 additions and 73 deletions

View File

@@ -200,11 +200,6 @@ void MapContext::update() {
painter->setDebug(data.getDebug());
}
if (u & static_cast<UpdateType>(Update::RenderStill)) {
// Triggers a view resize.
view.discard();
}
if (style) {
if (u & static_cast<UpdateType>(Update::DefaultTransitionDuration)) {
style->setDefaultTransitionDuration(data.getDefaultTransitionDuration());
@@ -233,8 +228,6 @@ void MapContext::update() {
void MapContext::render() {
assert(Environment::currentlyOn(ThreadType::Map));
view.discard();
// Cleanup OpenGL objects that we abandoned since the last render call.
env.performCleanup();