Talk:Tutorial3: Rendering 3D Objects (C /SDL)
Has any one managed to successfully compile/link this code under windows. I tried getting this to run using SDL 1.3 and GLEW 1.53 on the VC++ 2008 compiler it seemingly compiles fine however all that I manage to see is a white background in the spawned window.
Solved my issue with Tutorial3
After some debugging I narrowed down the issue to an issue with the fragment shader. I believe the issue was caused by the shader compiler supplied by the driver was being strict, possibly because of the original use of the gl_FragColor which is now depreciated.
Changes I made to fix the issue for my uses.
File: tutorial3.frag
#version 150 in vec3 ex_Color; out vec4 fragColor; void main(void) { fragColor = vec4(ex_Color, 1.0); }