OpenGL Sample Program throws error on Debug only (OpenCV3)

asked 2016-02-11 20:11:37 -0600

mynameisjohnj gravatar image

Hi all,

First off, this is a duplicate of this question: http://answers.opencv.org/question/31...

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... 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

edit retag flag offensive close merge delete

Comments

1

Bug : have a look here

LBerger gravatar imageLBerger ( 2016-02-12 01:33:26 -0600 )edit

Unfortunate, but this is an acceptable answer.

mynameisjohnj gravatar imagemynameisjohnj ( 2016-02-13 16:35:59 -0600 )edit