1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

fixed texture remapping (was buggy -- texture_map_orig did not know tvertices

This commit is contained in:
Zeno Rogue 2018-04-06 00:34:09 +02:00
parent 0941411ffc
commit 951e00531b

View File

@ -429,17 +429,18 @@ void texture_config::perform_mapping() {
}
}
computeCgroup();
texture::cgroup = patterns::cgroup;
texture_map_orig = texture_map;
orig_texture_parameters = current_texture_parameters;
// printf("texture_map has %d elements (S%d)\n", size(texture_map), config.tstate);
}
void texture_config::finish_mapping() {
if(config.tstate == tsActive)
for(auto& mi: texture_map)
mapTexture2(mi.second);
patterns::computeCgroup();
texture::cgroup = patterns::cgroup;
texture_map_orig = texture_map;
orig_texture_parameters = current_texture_parameters;
// printf("texture_map has %d elements (S%d)\n", size(texture_map), config.tstate);
}
void texture_config::saveFullTexture(string tn) {