Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-02-09 03:56:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-09 04:00:08 +0300
commit97d9d6224c5e3be3e3ddff012558ed9e03cf0e32 (patch)
tree9824038e045d6ee07941ae616754afec4c4506e6 /source/blender/blenloader/intern/versioning_defaults.c
parent2ac88328b00556dee2acdcab094162d8e3c771ae (diff)
Set clip alpha to small non-zero value
This amends 089d2a18 which was a known driver bug (T46962), increasing the clipping to avoid precision issues.
Diffstat (limited to 'source/blender/blenloader/intern/versioning_defaults.c')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 894d5997451..ddfbf1895a0 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -64,8 +64,10 @@ void BLO_update_defaults_userpref_blend(void)
/* default from T47064 */
U.audiorate = 48000;
- /* for some reason U.glalphaclip was 1.8367099231598242e-40 */
- U.glalphaclip = 0.0f;
+ /* Keep this a very small, non-zero number so zero-alpha doesn't mask out objects behind it.
+ * but take care since some hardware has driver bugs here (T46962).
+ * Further hardware workarounds should be made in gpu_extensions.c */
+ U.glalphaclip = (1.5f / 255);
}
/**