# A possible bug in the default render script

**URL:** <https://forum.defold.com/t/a-possible-bug-in-the-default-render-script/79775>\
**Category:** Bugs\
**Created:** [February 14, 2025, 4:45am UTC](https://forum.defold.com/t/a-possible-bug-in-the-default-render-script/79775 "2025-02-14T04:45:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anton\_K](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/a/e56c9b/32.png) [@Anton\_K](https://forum.defold.com/u/Anton_K)\
**Post date:** [February 14, 2025, 4:45am UTC](https://forum.defold.com/t/a-possible-bug-in-the-default-render-script/79775/1 "2025-02-14T04:45:25Z")

</div>

A few months ago the default render script was [modified](https://github.com/defold/defold/commit/5005a904c6a502a21dfaff17eff65987c1cb5964) to use camera components by default. And the property `camera.frustum` was [renamed](https://github.com/defold/defold/commit/5005a904c6a502a21dfaff17eff65987c1cb5964#diff-71ddfdf1e1700816f5a2b541347d85d8c2bab44163efb6fa8e180d2cc663d8b8R72) to `camera.options`. But in the GUI section of `update()` this property is still [referenced](https://github.com/defold/defold/blob/f8ad837d9be06794c0a57089f908e69b9acb2805/engine/engine/content/builtins/render/default.render_script#L244) as `camera_gui.frustum`. I think this should be changed to `camera_gui.options`.  
I don’t know if this actually matters. Or maybe I don’t understand it right. It’s just something I have stumbled upon.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [February 14, 2025, 8:23am UTC](https://forum.defold.com/t/a-possible-bug-in-the-default-render-script/79775/2 "2025-02-14T08:23:25Z")

</div>

You are right! There is no `frustum` on the ´camera\_gui` table. It should be

```lua
render.draw(predicates.gui, camera_gui.options)

```

 ![Screenshot 2025-02-14 at 09.22.02](https://forum-defold.b-cdn.net/uploads/default/original/3X/5/8/58b8a17dce30bb289fb938489516f740e639f6f5.png)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [February 14, 2025, 8:34am UTC](https://forum.defold.com/t/a-possible-bug-in-the-default-render-script/79775/3 "2025-02-14T08:34:34Z")

</div>

PR: [The default render script was not using an option table when drawing the gui by britzl · Pull Request #10222 · defold/defold · GitHub](https://github.com/defold/defold/pull/10222)
