2025-09-13 07:49 CEST

spring: develop 84bb655e Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
jK jK develop 2011-09-30 20:29:52 develop 3b3e0f1b
Changeset SMFReadmap: fix inconsistence texture space expectations regarding normalTexture (#1 c++ side)
before
* it was gs->pwr2mapxy
* but it is used as per-vertex (which is 0 .. gs->mapxy -> size is `gs->mapxy + 1`)
* again a bufferoverflow
-> caused those black dots on the map

now
* size is now gs->mapxy + 1 when NPOTs are supported
* else it is PowerOfTwo(gs->mapxy + 1) (will possibly be larger than the max supported texture size on some cards esp. w/o NPOT support ...)
mod - rts/Map/SMF/SMFReadMap.cpp Diff ] File ]
mod - rts/Map/SMF/SMFReadMap.h Diff ] File ]