void MirBufferSGTexture::bind()
{
Q_ASSERT(hasBuffer());
glBindTexture(GL_TEXTURE_2D, m_textureId);
updateBindOptions(true/* force */);
auto const texture_source = dynamic_cast<mrg::TextureSource*>(m_mirBuffer->native_buffer_base()); <=== HERE
if (!texture_source)
throw std::logic_error("Buffer does not support GL rendering");
void MirBufferSGText ure::bind( ) hasBuffer( )); re(GL_TEXTURE_ 2D, m_textureId); ptions( true/* force */);
{
Q_ASSERT(
glBindTextu
updateBindO
auto const texture_source =
dynamic_ cast<mrg: :TextureSource* >(m_mirBuffer- >native_ buffer_ base()) ; <=== HERE error(" Buffer does not support GL rendering");
if (!texture_source)
throw std::logic_
texture_ source- >gl_bind_ to_texture( );
}