소스 검색

gui renderer dev...

leonsal 8 년 전
부모
커밋
4696ac07b8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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)