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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-04-18 17:41:07 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-04-18 17:42:16 +0300
commit2c29b94384d2c556563a3126563704a7e1173c65 (patch)
treef723d444a5c43beab8d74431ff6b70690e9efcac /source/blender/gpu/shaders/gpu_shader_text_frag.glsl
parentc9d78b6c434b5b1672ad0e0a2854eb9c1199f379 (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/gpu_shader_text_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_text_frag.glsl2
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;
}