Merge pull request #12621 from cv3d:fix/opengl

This commit is contained in:
Alexander Alekhin 2018-09-23 20:00:53 +00:00
commit 475c775b25

View File

@ -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: