瀏覽代碼

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 {