3D-Viewer: binds the default texture after draw and before end the list

Fixes https://gitlab.com/kicad/code/kicad/issues/2547

Fixes https://gitlab.com/kicad/code/kicad/issues/10741
This commit is contained in:
Mario Luzeiro 2022-03-25 21:47:12 +00:00
parent 150859c973
commit 7659f3c81b
1 changed files with 1 additions and 0 deletions

View File

@ -650,6 +650,7 @@ GLuint OPENGL_RENDER_LIST::generate_top_or_bot_seg_ends(
glDrawArrays( GL_TRIANGLES, 0, aTriangleContainer->GetVertexSize() );
glBindTexture( GL_TEXTURE_2D, 0 );
glDisable( GL_TEXTURE_2D );
glDisable( GL_ALPHA_TEST );
glDisable( GL_BLEND );