enforce trilinear and mipmap generation

This commit is contained in:
itsmattkc
2019-03-28 18:21:35 +11:00
parent c468d023b0
commit 4e0188fd3a
7 changed files with 32 additions and 18 deletions
+3 -1
View File
@@ -548,7 +548,7 @@ void ViewerWidget::paintGL() {
makeCurrent();
// clear to solid black
glClearColor(0.0, 0.0, 0.0, 1.0);
glClearColor(0.0, 0.0, 0.0, 0.0);
glClear(GL_COLOR_BUFFER_BIT);
// set color multipler to straight white
@@ -564,6 +564,8 @@ void ViewerWidget::paintGL() {
glBindTexture(GL_TEXTURE_2D, tex);
context()->functions()->glGenerateMipmap(GL_TEXTURE_2D);
glBegin(GL_QUADS);
double zoom_factor = container->zoom/(double(width())/double(viewer->seq->width));