spring: develop e307165a | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
jK | jK | develop | 2011-09-29 01:39:08 | develop 93cdce79 |
Changeset | SMFReadMap: build shadingTex again from center heightmap (reverts ece29c593a07) * shadingTex size is (mapxpw2, mapypw2) if you now index it with vertex coords you get max: (mapx + 1, mapy + 1) -> (mapxpw2, mapypw2) ? (mapx + 1, mapy + 1) <-> (pot(mapx), pot(mapy)) ? (mapx + 1, mapy + 1) now assume: (pot(mapx), pot(mapy)) = (mapx, mapy) -> (mapx, mapy) < (mapx + 1, mapy + 1) --> so ece29c593a07 was causing bufferoverruns in the gfx drivers! * switching to (pot(mapx + 1), pot(mapy + 1)) is not a solution cause it would increase the memory footprint of the texture a lot, also parts of the rendering queue would need to get adjusted for these new coords |
|||
mod - rts/Map/SMF/SMFReadMap.cpp | [ Diff ] [ File ] | |||
mod - rts/Map/SMF/SMFReadMap.h | [ Diff ] [ File ] |