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:
authorMike Erwin <significant.bit@gmail.com>2017-05-19 18:02:32 +0300
committerMike Erwin <significant.bit@gmail.com>2017-05-19 18:09:12 +0300
commit648f2a61ada53e07162efcf117e8b0269a55f5a8 (patch)
treebc80c48cb2d277a79ba62f800e5122b6615c811d /source/blender/gpu/shaders/gpu_shader_text_frag.glsl
parentfa47437426b8e4d72d15bcf3517b31c4202c095c (diff)
OpenGL: convert old texture2D calls in built-in shaders
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_text_frag.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_text_frag.glsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
index 1654d3bb016..7ff90ad4f21 100644
--- a/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_text_frag.glsl
@@ -2,7 +2,6 @@
flat in vec4 color_flat;
noperspective in vec2 texCoord_interp;
out vec4 fragColor;
-#define texture2D texture
uniform sampler2D glyph;
@@ -12,5 +11,5 @@ void main()
fragColor.rgb = color_flat.rgb;
// modulate input alpha & texture alpha
- fragColor.a = color_flat.a * texture2D(glyph, texCoord_interp).r;
+ fragColor.a = color_flat.a * texture(glyph, texCoord_interp).r;
}