Explorar el Código

gui renderer dev...

leonsal hace 8 años
padre
commit
4696ac07b8
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      renderer/renderer.go

+ 3 - 1
renderer/renderer.go

@@ -337,7 +337,9 @@ func (r *Renderer) renderGui(icam camera.ICamera) error {
 	buildRenderList(parent, !r.screenCleared)
 
 	// If there are panels to render, disable the scissor test
-	// which could have been set by the 3D scene renderer.
+	// which could have been set by the 3D scene renderer and
+	// then clear the depth buffer, so the panels will be rendered
+	// over the 3D scene.
 	if len(r.grmats) > 0 {
 		log.Error("render list:%v", len(r.grmats))
 		r.gs.Disable(gls.SCISSOR_TEST)