Converted a couple more things to shared pointers.
This commit is contained in:
@ -80,7 +80,7 @@ void UISimpleMenu::onStart() {
|
||||
break;
|
||||
|
||||
case UI_DRAW_TYPE_WORLD_CAMERA_RELATIVE:
|
||||
RenderTarget *rt = canvas->camera->getRenderTarget();
|
||||
auto rt = canvas->camera->getRenderTarget();
|
||||
mouse *= glm::vec2(rt->getWidth(), rt->getHeight());
|
||||
ray.origin = glm::vec3(mouse, 5);
|
||||
ray.direction = glm::vec3(0, 0, -10);
|
||||
|
Reference in New Issue
Block a user