diff options
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/select/shaders/selection_id_frag.glsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/engines/select/shaders/selection_id_frag.glsl b/source/blender/draw/engines/select/shaders/selection_id_frag.glsl index ea86ddc7301..a84bbbb2cac 100644 --- a/source/blender/draw/engines/select/shaders/selection_id_frag.glsl +++ b/source/blender/draw/engines/select/shaders/selection_id_frag.glsl @@ -1,14 +1,15 @@ #ifdef UNIFORM_ID uniform int id; -# define id floatBitsToUint(intBitsToFloat(id)) +# define _id floatBitsToUint(intBitsToFloat(id)) #else flat in uint id; +# define _id id #endif out uint fragColor; void main() { - fragColor = id; + fragColor = _id; } |