diff options
author | spiff_ <spiff_@svn> | 2010-01-08 23:47:11 +0000 |
---|---|---|
committer | spiff_ <spiff_@svn> | 2010-01-08 23:47:11 +0000 |
commit | d5c23e36410e2570b1089da505acb2b69d53262a (patch) | |
tree | e38ac6cc8d36b323a3e800bb399585a014b3ea4f /guilib/GUITextureGL.cpp | |
parent | ccea07a5a4229a0f7ebb7ff58e034820751a744a (diff) |
cosmetics
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26558 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUITextureGL.cpp')
-rw-r--r-- | guilib/GUITextureGL.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/guilib/GUITextureGL.cpp b/guilib/GUITextureGL.cpp index 8af30ff291..e26d54d468 100644 --- a/guilib/GUITextureGL.cpp +++ b/guilib/GUITextureGL.cpp @@ -41,11 +41,11 @@ void CGUITextureGL::Begin() glBindTexture(GL_TEXTURE_2D, texture->GetTextureObject()); glEnable(GL_TEXTURE_2D); - + glBlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); // Turn Blending On glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - + // diffuse coloring glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE); glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB, GL_MODULATE); @@ -97,7 +97,7 @@ void CGUITextureGL::Draw(float *x, float *y, float *z, const CRect &texture, con if (m_diffuse.size()) glMultiTexCoord2fARB(GL_TEXTURE1_ARB, diffuse.x1, diffuse.y1); glVertex3f(x[0], y[0], z[0]); - + // Top-right vertex (corner) glColor4ub(r, g, b, a); if (orientation & 4) @@ -119,7 +119,7 @@ void CGUITextureGL::Draw(float *x, float *y, float *z, const CRect &texture, con if (m_diffuse.size()) glMultiTexCoord2fARB(GL_TEXTURE1_ARB, diffuse.x2, diffuse.y2); glVertex3f(x[2], y[2], z[2]); - + // Bottom-left vertex (corner) glColor4ub(r, g, b, a); if (orientation & 4) |