Now, when i execute this on AMD supporting opengl 4.3 it works fine.
But with nvidia supporting 3.2 it gives errors:
"
Compile failed.
ERROR: 0:5: 'flat' : non varyings cannot have varying modifier qualifiers
ERROR: 0:7: 'flat' : non varyings cannot have varying modifier qualifiers
ERROR: 2 compilation errors. No code generated.
"
it gives error though they are of varying types. Please let me know what changes can be done so that it will work with nvidia too.