viewer/opengl: minor code improvements

This commit is contained in:
itsmattkc
2020-04-24 15:14:20 +10:00
parent 8c44f8d03d
commit c7de93cc5d
3 changed files with 23 additions and 26 deletions
+2 -2
View File
@@ -266,7 +266,7 @@ void ViewerGLWidget::paintGL()
framebuffer_.Attach(&managed_texture_);
framebuffer_.Bind();
context()->functions()->glViewport(0, 0, managed_texture_.width(), managed_texture_.height());
f->glViewport(0, 0, managed_texture_.width(), managed_texture_.height());
}
@@ -289,7 +289,7 @@ void ViewerGLWidget::paintGL()
// Bind retrieved texture
managed_texture_.Bind();
context()->functions()->glViewport(0, 0, width(), height());
f->glViewport(0, 0, width(), height());
OpenGLRenderFunctions::Blit(managed_copy_pipeline_);