blending modes added (#54)
This commit is contained in:
+3
-1
@@ -41,7 +41,7 @@ void ViewerWidget::initializeGL() {
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
// glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
}
|
||||
|
||||
//void ViewerWidget::resizeGL(int w, int h)
|
||||
@@ -58,6 +58,8 @@ void ViewerWidget::paintGL()
|
||||
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
long playhead = panel_timeline->playhead;
|
||||
|
||||
handle_media(sequence, playhead, multithreaded);
|
||||
|
||||
Reference in New Issue
Block a user