I compiled OpenCV 2.4.8 with both cuda and opengl support. Tested cuda with provided gpu optical flow sample and it worked well. OpenGL test failed using the provided gpu-example-opengl sample. The error msg is as following:
D:\Dev\SDKs\opencv-2.4.8-src\build_cuda+ogl\bin\Debug>gpu-example-opengl.exe roa d.png OpenCV Error: OpenGL API call (An unacceptable value is specified for an enumera ted argument) in cv::ogl::Arrays::bind, file D:\Dev\SDKs\opencv-2.4.8-src\source s\modules\core\src\opengl_interop.cpp, line 1353
Any idea how to solve it? Thanks!