projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872e912
)
fixed uninitialized warning by defaulting the switch values
author
davilla
<davilla@4pi.com>
Sat, 8 Oct 2011 12:50:07 +0000
(08:50 -0400)
committer
davilla
<davilla@4pi.com>
Sat, 8 Oct 2011 13:22:46 +0000
(09:22 -0400)
xbmc/guilib/TextureGL.cpp
patch
|
blob
|
history
diff --git
a/xbmc/guilib/TextureGL.cpp
b/xbmc/guilib/TextureGL.cpp
index
99dd586
..
7701712
100644
(file)
--- a/
xbmc/guilib/TextureGL.cpp
+++ b/
xbmc/guilib/TextureGL.cpp
@@
-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)
{
@@
-111,8
+111,6
@@
void CGLTexture::LoadToGPU()
break;
case XB_FMT_A8R8G8B8:
default:
- format = GL_BGRA;
- numcomponents = GL_RGBA;
break;
}