mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
fixed texture remapping (was buggy -- texture_map_orig did not know tvertices
This commit is contained in:
parent
0941411ffc
commit
951e00531b
11
textures.cpp
11
textures.cpp
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user