Skip to content

bgfx caps Initialization during 1st rendered frame #1163

@CedricGuillemet

Description

@CedricGuillemet

While doing tests for a partner on Android, I've noticed that if a render target is created in JS before having a frame rendered with bgfx, then is crashes here:

assert(bgfx::isTextureValid(0, false, 1, format, BGFX_TEXTURE_RT));

It looks like the caps are not properly.
I didn't check other APIs
Also, note this happens with context initialization and not with a native window initialization.

The fix for my case is to render 1 frame during init.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions