Skip to content

Commit

Permalink
VideoVisualGoom: Use MythRenderOpenGL::CreateTextureFromQImage
Browse files Browse the repository at this point in the history
- upcoming changes will remove MythRenderOpenGL::CreateTexture
  • Loading branch information
mark-kendall committed Mar 13, 2019
1 parent c7814ce commit 2c2881e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mythtv/libs/libmythtv/visualisations/videovisualgoom.cpp
Expand Up @@ -99,7 +99,11 @@ void VideoVisualGoom::Draw(const QRect &area, MythPainter */*painter*/,
glrender->makeCurrent();

if (!m_glSurface)
m_glSurface = glrender->CreateTexture(m_area.size());
{
QImage image(m_area.size(), QImage::Format_ARGB32);
m_glSurface = glrender->CreateTextureFromQImage(&image);
m_glSurface->m_crop = false;
}

if (m_glSurface)
{
Expand Down

0 comments on commit 2c2881e

Please sign in to comment.