diff --git a/modules/core/src/opengl.cpp b/modules/core/src/opengl.cpp index dc122f2fd7..74dedce1d6 100644 --- a/modules/core/src/opengl.cpp +++ b/modules/core/src/opengl.cpp @@ -1824,7 +1824,7 @@ UMat mapGLBuffer(const Buffer& buffer, AccessFlag accessFlags) switch (accessFlags & (ACCESS_READ|ACCESS_WRITE)) { default: - case ACCESS_READ|ACCESS_WRITE: + case ACCESS_READ+ACCESS_WRITE: clAccessFlags = CL_MEM_READ_WRITE; break; case ACCESS_READ: