fix a bug in OpenGL

pull/12621/head
Hamdi Sahloul 6 years ago
parent e8fcd721b8
commit b7e8ce4523
  1. 2
      modules/core/src/opengl.cpp

@ -1824,7 +1824,7 @@ UMat mapGLBuffer(const Buffer& buffer, AccessFlag accessFlags)
switch (accessFlags & (ACCESS_READ|ACCESS_WRITE)) switch (accessFlags & (ACCESS_READ|ACCESS_WRITE))
{ {
default: default:
case ACCESS_READ|ACCESS_WRITE: case ACCESS_READ+ACCESS_WRITE:
clAccessFlags = CL_MEM_READ_WRITE; clAccessFlags = CL_MEM_READ_WRITE;
break; break;
case ACCESS_READ: case ACCESS_READ:

Loading…
Cancel
Save