소스 검색

fixed generic camera SetAspect in application.go

Daniel Salvadori 7 년 전
부모
커밋
2c872fee07
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      util/application/application.go

+ 1 - 1
util/application/application.go

@@ -564,7 +564,7 @@ func (app *Application) OnWindowResize() {
 
 	// Sets perspective camera aspect ratio
 	aspect := float32(width) / float32(height)
-	app.camPersp.SetAspect(aspect)
+	app.Camera().SetAspect(aspect)
 
 	// Sets the GUI root panel size to the size of the framebuffer
 	if app.guiroot != nil {