MikePopoloski / SharpBgfx

C# bindings for the bgfx graphics library
MIT License
169 stars 32 forks source link

Wrong declaration of bgfx_update_texture_cube #26

Closed PowerStateFailure closed 5 years ago

PowerStateFailure commented 5 years ago

You certainly have misplaced second and third argument in bgfx_update_texture_cube: it should've been handle, layer, stride, ..., not handle, stride, layer, .... See https://github.com/bkaradzic/bgfx/blob/master/include/bgfx/c99/bgfx.h#L852

(I've spent couple of hours trying to understand why cubemap doesn't work)

MikePopoloski commented 5 years ago

Indeed, sorry about that. Fixed !