Skip to content

Commit

Permalink
MythVideoTexture: Use GL_RED for YV12 texture data format
Browse files Browse the repository at this point in the history
- GL_LUMINANCE is deprecated in more modern GLs
  • Loading branch information
mark-kendall committed Mar 15, 2019
1 parent 9d4b448 commit c755f0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mythtv/libs/libmythtv/mythvideotexture.cpp
Expand Up @@ -159,9 +159,7 @@ vector<MythVideoTexture*> MythVideoTexture::CreateSoftwareTextures(MythRenderOpe
if (plane > 0)
size = QSize(size.width() >> 1, size.height() >> 1);
texture = CreateTexture(Context, size, Target,
QOpenGLTexture::UInt8, QOpenGLTexture::Luminance,
QOpenGLTexture::Linear, QOpenGLTexture::ClampToEdge,
QOpenGLTexture::LuminanceFormat);
QOpenGLTexture::UInt8, QOpenGLTexture::Red);
break;
case FMT_YUY2:
size.setWidth(size.width() >> 1);
Expand Down

0 comments on commit c755f0d

Please sign in to comment.