Skip to content

Commit

Permalink
fixed: don't use pixel buffer objects when doing software colourspace…
Browse files Browse the repository at this point in the history
… conversion

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26321 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
bobo1on1 committed Jan 3, 2010
1 parent 20626b0 commit 747b1ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,8 @@ bool CLinuxRendererGL::CreateYV12Texture(int index, bool clear)
im.planesize[1] = im.stride[1] * ( im.height >> im.cshift_y );
im.planesize[2] = im.stride[2] * ( im.height >> im.cshift_y );

if (glewIsSupported("GL_ARB_pixel_buffer_object") && g_guiSettings.GetBool("videoplayer.usepbo"))
if (glewIsSupported("GL_ARB_pixel_buffer_object") && g_guiSettings.GetBool("videoplayer.usepbo")
&& !(m_renderMethod & RENDER_SW))
{
CLog::Log(LOGNOTICE, "GL: Using GL_ARB_pixel_buffer_object");
m_pboused = true;
Expand Down Expand Up @@ -2068,7 +2069,8 @@ bool CLinuxRendererGL::CreateNV12Texture(int index, bool clear)
// third plane is not used
im.planesize[2] = 0;

if (glewIsSupported("GL_ARB_pixel_buffer_object") && g_guiSettings.GetBool("videoplayer.usepbo"))
if (glewIsSupported("GL_ARB_pixel_buffer_object") && g_guiSettings.GetBool("videoplayer.usepbo")
&& !(m_renderMethod & RENDER_SW))
{
CLog::Log(LOGNOTICE, "GL: Using GL_ARB_pixel_buffer_object");
m_pboused = true;
Expand Down

0 comments on commit 747b1ba

Please sign in to comment.