Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around dimmer not working in Linux. #1514

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions xbmc/guilib/GUITextureGL.cpp
Expand Up @@ -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); glTexEnvf(GL_TEXTURE_ENV, GL_OPERAND1_RGB, GL_SRC_COLOR);
VerifyGLState(); VerifyGLState();


glBegin(GL_QUADS);

glColor4ub((GLubyte)GET_R(color), (GLubyte)GET_G(color), (GLubyte)GET_B(color), (GLubyte)GET_A(color)); 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); CRect coords = texCoords ? *texCoords : CRect(0.0f, 0.0f, 1.0f, 1.0f);
glTexCoord2f(coords.x1, coords.y1); glTexCoord2f(coords.x1, coords.y1);
glVertex3f(rect.x1, rect.y1, 0); glVertex3f(rect.x1, rect.y1, 0);
Expand All @@ -179,6 +178,9 @@ void CGUITextureGL::DrawQuad(const CRect &rect, color_t color, CBaseTexture *tex
glVertex3f(rect.x1, rect.y2, 0); glVertex3f(rect.x1, rect.y2, 0);


glEnd(); glEnd();

glColor4ub(255, 255, 255, 255);

if (texture) if (texture)
glDisable(GL_TEXTURE_2D); glDisable(GL_TEXTURE_2D);
} }
Expand Down