From a2697b18e2769143dacb0dfefd2fe2319fe14fd4 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Wed, 30 Nov 2011 07:38:45 +0000 Subject: [PATCH] minor fix --- modules/core/src/opengl_interop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/opengl_interop.cpp b/modules/core/src/opengl_interop.cpp index a635534620..445cbe82e4 100644 --- a/modules/core/src/opengl_interop.cpp +++ b/modules/core/src/opengl_interop.cpp @@ -800,7 +800,7 @@ cv::GlTexture::Impl::Impl(const GlBuffer& buf, bool bgra) : tex_(0) int depth = buf.depth(); int cn = buf.channels(); - CV_DbgAssert(buf.rows > 0 && buf.cols > 0); + CV_DbgAssert(buf.rows() > 0 && buf.cols() > 0); CV_Assert(cn == 1 || cn == 3 || cn == 4); CV_Assert(depth >= 0 && depth <= CV_32F); CV_Assert(buf.usage() == GlBuffer::TEXTURE_BUFFER);