Skip to content

Commit

Permalink
vaapi: cleanup left overs
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 7, 2014
1 parent 762fbdf commit 375de98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
19 changes: 1 addition & 18 deletions xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
Expand Up @@ -2530,25 +2530,8 @@ bool CLinuxRendererGL::CreateVAAPITexture(int index)
plane.pixpertex_x = 1;
plane.pixpertex_y = 1;

if(m_renderMethod & RENDER_POT)
{
plane.texwidth = NP2(plane.texwidth);
plane.texheight = NP2(plane.texheight);
}

glEnable(m_textureTarget);
glGenTextures(1, &plane.id);
VerifyGLState();
plane.id = 1;

glBindTexture(m_textureTarget, plane.id);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
glTexImage2D(m_textureTarget, 0, GL_RGBA, plane.texwidth, plane.texheight, 0, GL_BGRA, GL_UNSIGNED_BYTE, NULL);
glBindTexture(m_textureTarget, 0);
glDisable(m_textureTarget);
#endif
return true;
}
Expand Down
3 changes: 0 additions & 3 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -2029,9 +2029,6 @@ bool COutput::EnsureBufferPool()
}

glGenTextures(1, &pic->texture);
glBindTexture(m_textureTarget, pic->texture);
glXBindTexImageEXT(m_Display, pic->glPixmap, GLX_FRONT_LEFT_EXT, NULL);
glBindTexture(m_textureTarget, 0);

pic->avFrame = av_frame_alloc();
pic->valid = false;
Expand Down

0 comments on commit 375de98

Please sign in to comment.