title: Opengl ES draw wireframe over GL_TRIANGLES correctly
body: <p>I need to draw a wireframe around a cube,I have everything made but I have some problem with the alpha testing, whatever I do the GL_LINES keep either overlapping the GL_TRIANGLES when they dont have to(they are behind them) or the GL_TRIANGLES keep overlapping the GL_LINES (when the lines should be visible).</p>
  
  <p><a href="https://i.stack.imgur.com/jZMxo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jZMxo.png" alt="enter image description here"></a></p>
  
  <pre><code>    Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);
      Gdx.gl.glEnable(GL20.GL_DEPTH_TEST);
      SquareMap.get().shader.getShader().begin();
      SquareMap.get().shader.getShader().setUniformMatrix(u,camera.combined);
      LineRenderer3D.get().render(SquareMap.get().shader,worldrenderer.getCamera());
      TriangleRenderer3D.get().render(SquareMap.get().shader,worldrenderer.getCamera());
      SquareMap.get().shader.getShader().end();
  </code></pre>
  
  <p>Also the wireframe is a little bigger than the cube.</p>
  
  <p>The <code>TriangleRenderer3D.get().render</code> and <code>LineRenderer3D().render</code> just load the vertices and call <code>gl_drawarrays</code></p>
  
  <p>By enabling depth mask the cube GL_TRIANGLES overlap the lines</p>
  
  <p><a href="https://i.stack.imgur.com/n8BCI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n8BCI.png" alt="enter image description here"></a></p>
  
  <p>Do I need to enable something that I missing here?</p>