Jul 5, 2012 at 9:16pm UTC
How is it not working? Build errors? Getting any kind of message? Or just unexpected behavior?
Jul 5, 2012 at 9:34pm UTC
Unexpected behavior. It shows a black screen. I'm not sure why.
Jul 5, 2012 at 9:41pm UTC
From MSDN
If scale factors other than 1.0 are applied to the modelview matrix and lighting is enabled, automatic normalization of normals should probably also be enabled (glEnable and glDisable with argument GL_NORMALIZE).
http://msdn.microsoft.com/en-us/library/windows/desktop/dd368580(v=vs.85).aspx
Not sure if this is what's going on or not.
EDIT:
Nevermind, you're not going over 1.0. I have no idea what's going on here. Maybe one of our OpenGL guys/gals can get in here.
Last edited on Jul 5, 2012 at 9:42pm UTC
Jul 5, 2012 at 10:17pm UTC
Have you tried 2.0/4 instead of 2/4
I think operator/ gets its type from the left hand operand so you are getting an integer divide from the integer literal, i.e. 0