aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAaron Suen <warr1024@gmail.com>2015-03-30 20:04:19 -0400
committerCraig Robbins <kde.psych@gmail.com>2015-03-31 16:56:33 +1000
commitdb32e6c5aa3bf79c23fa51f9297440fcaf09215d (patch)
tree7d840ddc94da602c8fda5009feedbec06f91ac1a /src/game.cpp
parent862d4ea328ed30d79f4e28eb9119e21e275295d9 (diff)
downloadminetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.tar.gz
minetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.tar.bz2
minetest-db32e6c5aa3bf79c23fa51f9297440fcaf09215d.zip
Move texture_min_size even further down the pipe. Now, textures are JIT-upscaled using an image transformation, right at the time they're added to a mesh or particle; images used in 2D elements are left unscaled. This should fix any remaining issues with HUD elements.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 25b4048a3..6bddfe905 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -3202,12 +3202,12 @@ void Game::processClientEvents(CameraOrientation *cam, float *damage_flash)
event.set_sky.params->size() == 6) {
sky->setFallbackBgColor(*event.set_sky.bgcolor);
skybox = smgr->addSkyBoxSceneNode(
- texture_src->getTexture((*event.set_sky.params)[0]),
- texture_src->getTexture((*event.set_sky.params)[1]),
- texture_src->getTexture((*event.set_sky.params)[2]),
- texture_src->getTexture((*event.set_sky.params)[3]),
- texture_src->getTexture((*event.set_sky.params)[4]),
- texture_src->getTexture((*event.set_sky.params)[5]));
+ texture_src->getTextureForMesh((*event.set_sky.params)[0]),
+ texture_src->getTextureForMesh((*event.set_sky.params)[1]),
+ texture_src->getTextureForMesh((*event.set_sky.params)[2]),
+ texture_src->getTextureForMesh((*event.set_sky.params)[3]),
+ texture_src->getTextureForMesh((*event.set_sky.params)[4]),
+ texture_src->getTextureForMesh((*event.set_sky.params)[5]));
}
// Handle everything else as plain color
else {