]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/xywindow.cpp
Merge commit '6a7a6b309311c16138981200f4539770755c243a' into master-merge
[xonotic/netradiant.git] / radiant / xywindow.cpp
index 5024d68f69246e5652d6ee7272db05eef3166cee..a238d056745bb6280480fe62943adcfc406f392c 100644 (file)
@@ -2179,6 +2179,7 @@ void XYWnd::UpdateCameraIcon( void ){
                                XYWnd::DrawCameraIcon( Camera_getOrigin( *g_pParentWnd->GetCamWnd() ), Camera_getAngles( *g_pParentWnd->GetCamWnd() ) );
 
                                glDisable( GL_BLEND );
+                               glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
                        }
 
                        glDrawBuffer( GL_BACK );
@@ -2629,6 +2630,7 @@ void XYWnd::XY_Draw(){
        glEnable( GL_BLEND );
        glBlendFunc( GL_ONE_MINUS_DST_COLOR, GL_ZERO );
        DrawCameraIcon( Camera_getOrigin( *g_pParentWnd->GetCamWnd() ), Camera_getAngles( *g_pParentWnd->GetCamWnd() ) );
+       glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
        glDisable( GL_BLEND );
 
        Feedback_draw2D( m_viewType );