diff --git a/modules/core/src/opengl.cpp b/modules/core/src/opengl.cpp index 14f5588680..dd6f23862b 100644 --- a/modules/core/src/opengl.cpp +++ b/modules/core/src/opengl.cpp @@ -45,6 +45,13 @@ #ifdef HAVE_OPENGL # include "gl_core_3_1.hpp" # ifdef HAVE_CUDA +# if (defined(__arm__) || defined(__aarch64__)) \ + && !defined(OPENCV_SKIP_CUDA_OPENGL_ARM_WORKAROUND) +# include +# ifndef GL_VERSION +# define GL_VERSION 0x1F02 +# endif +# endif # include # endif #else // HAVE_OPENGL