]> git.sesse.net Git - kdenlive/commitdiff
This glClear is needed on Mac OSX.
authorDan Dennedy <dan@dennedy.org>
Tue, 28 Dec 2010 07:04:08 +0000 (07:04 +0000)
committerDan Dennedy <dan@dennedy.org>
Tue, 28 Dec 2010 07:04:08 +0000 (07:04 +0000)
svn path=/trunk/kdenlive/; revision=5215

src/videoglwidget.cpp

index 219a96a87f6580ffdfb0be892db8193d585d4ee1..d010b2253520c1b3d091ce62eeb74cb57f48c7bf 100644 (file)
@@ -79,12 +79,15 @@ void VideoGLWidget::resizeGL(int width, int height)
     glLoadIdentity();
     gluOrtho2D(0, width, height, 0);
     glMatrixMode(GL_MODELVIEW);
-    glClear(GL_COLOR_BUFFER_BIT); // | GL_DEPTH_BUFFER_BIT // Depth is disabled, so shouldn'b be necessary to clear DEPTH_BUFFER
+    glClear(GL_COLOR_BUFFER_BIT);
 }
 
 void VideoGLWidget::paintGL()
 {
     if (m_texture) {
+#ifdef Q_WS_MAC
+               glClear(GL_COLOR_BUFFER_BIT);
+#endif
         glEnable(GL_TEXTURE_RECTANGLE_EXT);
         glBegin(GL_QUADS);
         glTexCoord2i(0, 0);