Skip to content

SDL & BGFX On Windows - Black Window #3166

Closed Answered by joseph-montanez
joseph-montanez asked this question in Q&A
Discussion options

You must be logged in to vote

I'm an idiot...

    init.type = bgfx::RendererType::Direct3D11;
    init.vendorId = BGFX_PCI_ID_NONE;
    init.resolution.width = windowWidth;
    init.resolution.height = windowHeight;
    init.resolution.reset = BGFX_RESET_VSYNC;
    init.platformData.ndt = wmi.info.win.window;
    init.platformData.nwh = nullptr;
    init.platformData.type = bgfx::NativeWindowHandleType::Default;
    init.limits.transientVbSize = 1024 * 1024 * 24;

.ndt and .nwh needed to be swapped....

    init.platformData.ndt = nullptr;
    init.platformData.nwh = wmi.info.win.window;

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joseph-montanez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant