bgfx.nim icon indicating copy to clipboard operation
bgfx.nim copied to clipboard

fix: example's BGFX initialization

Open funatsufumiya opened this issue 1 year ago • 1 comments

I wondered why example hello world is not working, and I found solution. I confirmed bgfx initialization method is changed recently (I don't know when it changed).

funatsufumiya avatar Dec 15 '24 04:12 funatsufumiya

(P.S.) solved on 256f2ea


Sorry, I confirmed this version makes errors below on Windows environment. I'll check what's happening here.

SDL2 version: 2.0.5 - Subsystem: SysWM_Windows
Traceback (most recent call last)
C:\Users\fu\lab\bgfx.nim\examples\00-HelloWorld\main.nim(35) main
C:\Users\fu\lab\bgfx.nim\examples\graphics.nim(142) init
SIGSEGV: Illegal storage access. (Attempt to read from nil?)

I also checked the version before PR, shows error below. So I think initialization method itself is not wrong.

SDL2 version: 2.0.5 - Subsystem: SysWM_Windows
Error initializng BGFX.

funatsufumiya avatar Dec 15 '24 05:12 funatsufumiya