Fix T68911: "illegal recursive expansion of macro id"

I imagined that could be a problem for some drivers.
I should have avoided.
This commit is contained in:
Germano Cavalcante 2019-08-20 21:56:39 -03:00
parent daba3e871f
commit 899d2461bf
Notes: blender-bot 2023-02-14 09:02:41 +01:00
Referenced by issue #68911, blender2.81 crashes in edit mode by clicking left mouse button default instalation
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}