diff options
Diffstat (limited to 'cube-texture.patch')
-rw-r--r-- | cube-texture.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/cube-texture.patch b/cube-texture.patch new file mode 100644 index 000000000000..3c217ad58c9a --- /dev/null +++ b/cube-texture.patch @@ -0,0 +1,26 @@ +=== modified file 'plugins/cubeaddon/src/cubeaddon.cpp' +--- a/plugins/cubeaddon/src/cubeaddon.cpp 2013-05-09 13:43:07 +0000 ++++ b/plugins/cubeaddon/src/cubeaddon.cpp 2015-09-22 13:33:09 +0000 +@@ -591,8 +591,8 @@ + mCapFill[i * 3 + 1], + mCapFill[i * 3 + 2], + 1.0f); +- float s = v * sGen; +- float t = v * tGen; ++ float s = v * sGen + 0.5; ++ float t = v * tGen + 0.5; + + *(texCoordsPtr++) = s; + *(texCoordsPtr++) = t; +@@ -653,8 +653,8 @@ + * texCoord.s = dot (vec4 (obj, 1.0), sGenPlane) + * texCoord.t = dot (vec4 (obj, 1.0), tGenPlane) + */ +- float s = v * sGen; +- float t = v * tGen; ++ float s = v * sGen + 0.5; ++ float t = v * tGen + 0.5; + + *(texCoordsPtr++) = s; + *(texCoordsPtr++) = t; + |