diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-18 17:41:07 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-04-18 17:42:16 +0300 |
commit | 2c29b94384d2c556563a3126563704a7e1173c65 (patch) | |
tree | f723d444a5c43beab8d74431ff6b70690e9efcac /source/blender/gpu/shaders | |
parent | c9d78b6c434b5b1672ad0e0a2854eb9c1199f379 (diff) |
Fix text drawing with core profile
The issue was going to the fact that GL_ALPHA was deprecated in core profile
and common solution online is to use GL_RED instead. That is what is done in
this commit.
Diffstat (limited to 'source/blender/gpu/shaders')
-rw-r--r-- | source/blender/gpu/shaders/gpu_shader_text_frag.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl index 9283d682767..e0a19912520 100644 --- a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl +++ b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl @@ -18,5 +18,5 @@ void main() fragColor.rgb = color_flat.rgb; // modulate input alpha & texture alpha - fragColor.a = color_flat.a * texture2D(glyph, texCoord_interp).a; + fragColor.a = color_flat.a * texture2D(glyph, texCoord_interp).r; } |