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>2016-09-23 19:16:45 +0300
committerMike Erwin <significant.bit@gmail.com>2016-09-23 19:16:45 +0300
commit36bbdf142c524ee3f428efd203279e1b6cff3475 (patch)
treeb4a913d1b0e54b85e7ce2fdab64e431e34c6ece0
parent7fc2e333bb2632680c5061793e72e0c025231f51 (diff)
OpenGL: fix new shader for Mac
Follow-up to rB4a1feaa5558ed60388fd3be41db74fbc54f2ab08
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl
index 8c0d761dec6..d4d36def8cd 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_texture_vert.glsl
@@ -1,11 +1,13 @@
#if __VERSION__ == 120
+ attribute vec2 texcoord;
+ attribute vec3 position;
varying vec2 texture_coord;
#else
+ in vec2 texcoord;
+ in vec3 position;
out vec2 texture_coord;
#endif
-in vec2 texcoord;
-in vec3 position;
void main()
{