Ask Your Question

Revision history [back]

OpenGL Sample Program throws error on Debug only (OpenCV3)

Hi all,

First off, this is a duplicate of this question: http://answers.opencv.org/question/31920/opencv-error-opengl-api-call-cvoglarraysbind/

I'm in basically the same situation as those two; Windows 10 64 bit, OpenCV3 compiled with OpenGL and CUDA. On Debug the sample found at https://github.com/Itseez/opencv/blob/master/samples/gpu/opengl.cpp compiles and links fine, and even runs up until the draw call, at which point an error is thrown at line 1350 of opengl.cpp.

    gl::EnableClientState(gl::TEXTURE_COORD_ARRAY);
    CV_CheckGlError();

exactly as described in that post. If I set my build config to release then the program runs fine (and I see a lovely image of chicky_512 rotating slowly.)

The answer in the thread I linked hinted at commenting out those checks in the source and recompiling, but I'd rather not do that.

Is there anything I can do about this error? I'd like to be able to debug my code, so if not I'll try and use GLUT or SDL2 next.

Thanks,

john