Parcourir la source

fixed generic camera SetAspect in application.go

Daniel Salvadori il y a 7 ans
Parent
commit
2c872fee07
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {