View Full Version : Does wglMakeCurrent reset the projection matrix?

08-22-2000, 02:36 PM
Does wglMakeCurrent reset the projection matrix to a zero matrix or an identity matrix or something else? Does it do anything besides set a DC's current rendering context?

08-22-2000, 03:39 PM
Yes, simply because opengl calls are valid for the current context, so if you have done any API call and then change your context, the API calls will not affect the new context.

08-23-2000, 02:12 AM
That confirms what I found out minutes before I read your post. I put all of my viewport and perspective matrix code right after the call to wglCreateContext and my problems are solved. Thanks!

PS - my problem was that I could not for the sake of my life get the "camera" to be positioned and oriented properly, even when copying code from working programs.