mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Disable depth testing for cursor
Fixes https://gitlab.com/kicad/code/kicad/-/issues/12183
This commit is contained in:
parent
c842f2700f
commit
71a6d26054
@ -2662,6 +2662,9 @@ void OPENGL_GAL::blitCursor()
|
||||
|
||||
const COLOR4D color = getCursorColor();
|
||||
|
||||
GLboolean depthTestEnabled = glIsEnabled( GL_DEPTH_TEST );
|
||||
glDisable( GL_DEPTH_TEST );
|
||||
|
||||
glActiveTexture( GL_TEXTURE0 );
|
||||
glDisable( GL_TEXTURE_2D );
|
||||
glEnable( GL_BLEND );
|
||||
@ -2712,6 +2715,9 @@ void OPENGL_GAL::blitCursor()
|
||||
}
|
||||
|
||||
glEnd();
|
||||
|
||||
if( depthTestEnabled )
|
||||
glEnable( GL_DEPTH_TEST );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user