Re: Unable to set pixel format 4 for device context
Posted by RobC on May 02, 2011; 2:54pm
URL: https://forum.jogamp.org/Unable-to-set-pixel-format-4-for-device-context-tp2852819p2890097.html
I just discovered something that seems very interesting with this problem. I had thought the problem was when moving between two different frames displaying OpenGL 3D, but it actually looks like it may be a window thing. I ran the test program that you sent over and noticed that when I hovered the mouse over the Eclipse window behind the app, the app always broke. The area of Eclipse that caused the app to break on mouse over was the isolated to the package explorer. When I hovered over a package, a tooltip came up and the app broke (with the "Unable to set pixel format..."). I began testing this with other windows(Windows Explorer, Command Prompts) and it seems very consistent that almost every time another window becomes active, the 3D app breaks, and even when a window becomes active and DOESN'T break the app, making the 3D window active again DOES break it. I'm not sure if any of this will help at all, but it seems like something worth mentioning.
Thanks,
Rob