Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bindTexturePatch: Leave a bit of secret extra padding for alignment, …
…just in case glGetTexImage() tries to write past the end of the decoded mipmap texture buffer and overflows the stack. Go figure. Fixes a crash reported by @nouh when reading g_horse_tail01_d.dds and g_horse_tail02_d.dds. Textures with an incomplete mipmap chain, where the last mip (index 6) is 2x8 pixels and that probably comes with extra padding/stride requirements. But because we can't retrieve them glGetTexImage() writes as much data as it wants without being able to check the limits. --- NouH — 05/16/2024 3:54 PM You're the author of openbrf redux right? It seems to crash when I open a mesh. It crashes when I open any of these horse hair .mesh from the spak osp: https://www.nexusmods.com/mbwarband/mods/1783?tab=description I'm using a old openbrf version in the image, not redux.
- Loading branch information