Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
803 stars 62 forks source link

Cached textures can have same bm ptr but diff w,h #264

Closed donnierussellii closed 5 years ago

donnierussellii commented 5 years ago

bm ptr is used as hash to lookup a texture, but some textures may have the same bm ptr but different size; so include w,h in hash. Ptr part of hash must be 32 bits; w,h part 16 bits each.

This fixes texture corruption at bottom of invisible mutants on level 3.