From 737ba2a4d1193d69dbb20f467387de7a4f446b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 28 Feb 2013 20:42:16 +0000 Subject: [PATCH] - git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@529 b1fd45b6-86a6-48da-8261-f70d1f35bdcc --- lib_paysages/shared/preview.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib_paysages/shared/preview.c b/lib_paysages/shared/preview.c index 279bd73..947ce74 100644 --- a/lib_paysages/shared/preview.c +++ b/lib_paysages/shared/preview.c @@ -1,5 +1,4 @@ #include "preview.h" -#include "renderer.h" #include #include "../renderer.h" @@ -28,8 +27,8 @@ static void _deleteRenderer(PreviewRenderer* renderer) static void _setCamera(PreviewRenderer* renderer, Vector3 location, Vector3 target) { - cameraSetLocation(renderer->renderer->render_camera, location); - cameraSetTarget(renderer->renderer->render_camera, target); + cameraSetLocation(&renderer->renderer->render_camera, location.x, location.y, location.z); + cameraSetTarget(&renderer->renderer->render_camera, target.x, target.y, target.z); } PreviewClass previewCreateClass(FuncPreviewCustomizeRenderer customizeRenderer, FuncPreviewBindDefinition bindDefinition, FuncPreviewGetPixelColor getPixelColor)