minor fix

This commit is contained in:
Vladislav Vinogradov 2011-11-30 07:38:45 +00:00
parent fa93b724ee
commit a2697b18e2

View File

@ -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);