Commit 3502335b authored by Zach Krall's avatar Zach Krall

fix webgl file

parent 0f714512
Pipeline #180336173 passed with stage
in 0 seconds
......@@ -102,6 +102,8 @@ export default () => {
let targetCanvas = useRef<HTMLCanvasElement>()
const maxWidth = 600
let renderer,
scene,
cam,
......@@ -138,7 +140,6 @@ export default () => {
}
const setup = () => {
const maxWidth = 600
const canvas = targetCanvas.current
canvas.height = targetCanvas.current.parentElement.offsetHeight
canvas.width = targetCanvas.current.parentElement.offsetWidth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment