OpenGL fragment shader not working on core i5 laptop on windows7
I am new to OpenGL development. I am trying to work with some sample examples of OpenGL.
In one example, i am trying to change colour of triangle through fragment shader but it is not reflecting in final output.
I have tested same program on two machines with following configurations:
1) windows 7 on core i5 CPU-- not working
2) windows 7 on core i5-2540M CPU -- working
Both machines are having same OpenGL libraries installed.
Following is the fragment shader:
#version 330 core
out vec4 fColor;
fColor = vec4(1.0, 0.5, 0.5,1.0f);
By default i get white triangle, so when i try to change it through fragment shader,it doesn't reflect.
please let me know, if any one of you have faced similar issue.