SDL & BGFX On Windows - Black Window #3166
-
I am struggling to get a working example here: Everything is loaded. I am using a single-threaded version of BGFX and not even the BGFX info panel is displaying. It's like it's not using the SDL window (https://github.com/joseph-montanez/bgfxSdl2ExampleWindowsDx11/blob/master/main.cpp#L101). When I run the application with my own output I get:
I reviewed this issue: #1337 and followed what I could there (doesn't work in the single-threaded version). I also reviewed the entry_sdl.h, I even debugged it line for line with the same values in "init", with ::reset and ::render If I could just slap in entry.h and so on I would but it's tied to other files like the threading. I've already verified the vertex data, indices, shaders, texture, and camera setup all work on macOS via Metal with the same setup, just init looks different since I have to pass in the Metal layer. At a minimum, the BGFX info panel should be showing, even if I was doing something wrong after initialization. Here is BGFX debug output:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm an idiot...
.ndt and .nwh needed to be swapped....
|
Beta Was this translation helpful? Give feedback.
I'm an idiot...
.ndt and .nwh needed to be swapped....