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)"
This commit is contained in:
Dalai Felinto 2016-02-08 15:12:11 -02:00
parent 6e16becffd
commit 089d2a18d9
Notes: blender-bot 2023-02-14 10:21:11 +01:00
Referenced by commit 97d9d6224c, Set clip alpha to small non-zero value
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}
/**