Skip to content
Browse files

Work around dimmer not working in Linux.

  • Loading branch information...
1 parent 0364761 commit e2d4707fec3bf2ada3da0fcc8a168f7434fb1b3e @zewt committed Sep 30, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 xbmc/guilib/GUITextureGL.cpp
View
6 xbmc/guilib/GUITextureGL.cpp
@@ -164,10 +164,9 @@ void CGUITextureGL::DrawQuad(const CRect &rect, color_t color, CBaseTexture *tex
glTexEnvf(GL_TEXTURE_ENV, GL_OPERAND1_RGB, GL_SRC_COLOR);
VerifyGLState();
- glBegin(GL_QUADS);
-
glColor4ub((GLubyte)GET_R(color), (GLubyte)GET_G(color), (GLubyte)GET_B(color), (GLubyte)GET_A(color));
+ glBegin(GL_QUADS);
CRect coords = texCoords ? *texCoords : CRect(0.0f, 0.0f, 1.0f, 1.0f);
glTexCoord2f(coords.x1, coords.y1);
glVertex3f(rect.x1, rect.y1, 0);
@@ -179,6 +178,9 @@ void CGUITextureGL::DrawQuad(const CRect &rect, color_t color, CBaseTexture *tex
glVertex3f(rect.x1, rect.y2, 0);
glEnd();
+
+ glColor4ub(255, 255, 255, 255);
+
if (texture)
glDisable(GL_TEXTURE_2D);
}

0 comments on commit e2d4707

Please sign in to comment.
Something went wrong with that request. Please try again.