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:
authorDalai Felinto <dfelinto@gmail.com>2016-02-08 20:12:11 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-02-08 20:15:48 +0300
commit089d2a18d92c3f6637b28ef56f28a455f4f0a910 (patch)
tree00c77b6094c2a4bb8a172a451315a6d77e3a2ed4 /source/blender/blenloader
parent6e16becffd5725d2403724ef60d5f5bae30d828f (diff)
Fix: Empty > Image not working in some hardwares
Basically the default U.glalphaclip was 1.8367099231598242e-40 in some computers (e.g., OSX 10.11, AMD Radeon HD 6750M) this value would need for bad gl clipping. The new default is 0.0. To test this before/after the fix, just run: $ blender -b --factory-startup --python-expr "import bpy; print(bpy.context.user_preferences.system.gl_clip_alpha)"
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 7ea26ea781b..894d5997451 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -63,6 +63,9 @@ 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;
}
/**