fixed: in opengl, you can only use 0 to indicate that a variable does not hold a...
authorbobo1on1 <bob-nospam-@xbmc.org>
Wed, 18 May 2011 15:12:53 +0000 (17:12 +0200)
committerbobo1on1 <bob-nospam-@xbmc.org>
Wed, 18 May 2011 15:13:34 +0000 (17:13 +0200)
xbmc/cores/VideoRenderers/OverlayRendererGL.cpp

index 4b4a843..3cd61c8 100644 (file)
@@ -281,7 +281,7 @@ COverlayGlyphGL::COverlayGlyphGL(CDVDOverlaySSA* o, double pts)
   int width  = MathUtils::round_int(dst.Width());
   int height = MathUtils::round_int(dst.Height());
 
-  m_texture = ~(GLuint)0;
+  m_texture = 0;
 
   SQuads quads;
   if(!convert_quad(o, pts, width, height, quads))
@@ -391,7 +391,7 @@ COverlayGlyphGL::~COverlayGlyphGL()
 
 void COverlayGlyphGL::Render(SRenderState& state)
 {
-  if (m_texture == ~GLuint(0))
+  if (m_texture == 0)
     return;
 
   glEnable(GL_TEXTURE_2D);