Skip to content

Commit

Permalink
fixed uninitialized warning by defaulting the switch values
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Oct 8, 2011
1 parent 872e912 commit 558e465
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions xbmc/guilib/TextureGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ void CGLTexture::LoadToGPU()
m_textureWidth = maxSize;
}

GLenum format;
GLint numcomponents;
GLenum format = GL_BGRA;
GLint numcomponents = GL_RGBA;

switch (m_format)
{
Expand All @@ -111,8 +111,6 @@ void CGLTexture::LoadToGPU()
break;
case XB_FMT_A8R8G8B8:
default:
format = GL_BGRA;
numcomponents = GL_RGBA;
break;
}

Expand Down

0 comments on commit 558e465

Please sign in to comment.