there is a situation that making me going crazy for at least a week. Im converting my engine to opengl 3.2. Works fine,as long as i only draw a colored fullscreen quad. I tried to display a cube, so ive created a perspective matrix, view matrix and model matrix, apply them to a shader and multiply them with the position of the vector. Nothing... (Black screen)
I had thought there must be a problem in my 3D math library (im not really a math whiz...), so i had looked for errors, other implementations and the problem didnt get solved. Maybe there is something little, something ive failed to notice... Now im asking you guys, perhaps you find my mistake.
Now im getting GL error 1282 (Invalid operation). But only if i use the matrices for gl_Position in my shader (gl_Position = m4Proj*(m4Model*m4View)*vec4(v3Pos, 1.0);). There is no error then i set gl_Position to vec4(v3Pos, 1.0f).