]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/gtkutil/xorrectangle.cpp
Merge commit '6a7a6b309311c16138981200f4539770755c243a' into master-merge
[xonotic/netradiant.git] / libs / gtkutil / xorrectangle.cpp
index 99ff978b09e3576d35136f477f8771812f5b6255..3f519b09a4c9d6b32192a6e6dd29719b4604f896 100644 (file)
@@ -96,6 +96,7 @@ void XORRectangle::set(rectangle_t rectangle)
                                glVertex2f( rectangle.x, rectangle.y );
                                glEnd();
 
+                               glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
                                glDrawBuffer( GL_BACK );
                                GlobalOpenGL_debugAssertNoErrors();
                                //glwidget_swap_buffers( m_widget );