suppressing openGL runtime warnings
I am getting the following warning sporadically in a Win32 console application written in C++ compiled with VC++ 2010 Express:
OpenGL Warning: GetRandomRgn returned (-1) instead of (1), VisibleRegions 开发者_运维问答update failed
Since this seems to have no adverse effect on the application I will be happy with simply suppressing this warning from showing in the console. Any ideas?
Thanks, -naor
So this is coming from virtual box code.
It's a windows call (GetRandomRgn) that fails. The failure reasons are documented in the windows documentation (which I don't fully understand), but in all cases, it's not at all related to OpenGL.
Suppressing the warning would mean modifying the virtualbox code to remove the print, but at that point, you might want to fix the code instead.
精彩评论