gl4es icon indicating copy to clipboard operation
gl4es copied to clipboard

Debug view issue

Open AbduSharif opened this issue 3 years ago • 2 comments

There's an on-going merge request for OpenMW's collision debug view to get upgraded visually and we have hit an issue on the Android port, but we're not sure what it could be, Is there an issue where a big glDrawArrays could get turned into a glDrawElements with an insufficient index bit depth?

For reference this is the MR: https://gitlab.com/OpenMW/openmw/-/merge_requests/684

The bugged debug view looks like this:

tcg1

tcg2

AbduSharif avatar Aug 22 '21 23:08 AbduSharif

The specific sub-thread is https://gitlab.com/OpenMW/openmw/-/merge_requests/684#note_536217611

AnyOldName3 avatar Aug 22 '21 23:08 AnyOldName3

Yes, glDrawArray->glDrawElement tend to use 16bits index.

I need to find a way to smoothly handle both, because 32bits index is optionnal, but 16bits is a bit limited now, with the more powerfull GPU from modern mobile devices.

ptitSeb avatar Aug 23 '21 08:08 ptitSeb