Open RblSb opened 1 year ago
Currently this mistake is complicated to debug, because:
Error: Cannot cast { g2canvas : null, myWidth : 240, myHeight : 160, myFormat : 0, renderTarget : false, image : [object HTMLImageElement], video : null } to { __name__ : true, init : <function>, formatByteSize : <function> }
And endless Error: End before you begin spam.
Error: End before you begin
We can throw this problem at step 1 if do not ignore null in SystemImpl.gl here 10 years ago: https://github.com/Kode/Kha/blob/2462f98275a24c24b65200a7e7fd9744339a4a11/Backends/HTML5/kha/CanvasImage.hx#L144-L146
null
SystemImpl.gl
Or maybe even earlier someway.
Currently this mistake is complicated to debug, because:
And endless
Error: End before you begin
spam.We can throw this problem at step 1 if do not ignore
null
inSystemImpl.gl
here 10 years ago: https://github.com/Kode/Kha/blob/2462f98275a24c24b65200a7e7fd9744339a4a11/Backends/HTML5/kha/CanvasImage.hx#L144-L146Or maybe even earlier someway.