We have a problem with context creation on Vista. For the same console demo application, if we launch it via command prompt, we get the expect render context. But if we launch it via windows service, we get “GDI Generic” context. The demo app simply creates a disabled window and the render context and then prints the “glGetString(GL_RENDERER)”.
The same test on WinXP shows that we get expected render context in both the cases.
To further investigate the problem on Vista, I’ve found that the function “ChoosePixelFormat()” returns different values in the two cases, which results different render context.
So, is there a way to solve this problem or it’s a dead end?