Mercurial > mplayer.hg
changeset 36243:33b774ea1ae6
Simplify blend function used.
author | reimar |
---|---|
date | Wed, 12 Jun 2013 18:54:16 +0000 |
parents | 406e87858d1f |
children | ca4ce05e1930 |
files | libvo/matrixview.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/matrixview.c Wed Jun 12 18:54:15 2013 +0000 +++ b/libvo/matrixview.c Wed Jun 12 18:54:16 2013 +0000 @@ -71,7 +71,7 @@ num3 = num - (num2 * 10); ty = (float)num2 / 7; tx = (float)num3 / 10; - mpglColor4ub(0, 255, 0, light); // Basic polygon color + mpglColor4ub(0, light, 0, 255); // Basic polygon color mpglTexCoord2f(tx, ty); mpglVertex3f(x, y, z); @@ -92,7 +92,7 @@ num3 = num - (num2 * 10); ty = (float)num2 / 7; tx = (float)num3 / 10; - mpglColor4ub(255, 255, 255, 128); // Basic polygon color + mpglColor4ub(128, 128, 128, 255); // Basic polygon color mpglTexCoord2f(tx, ty); mpglVertex3f(x, y, z); @@ -106,7 +106,7 @@ static void draw_flare(float x, float y, float z) //flare { - mpglColor4ub(255, 255, 255, 204); // Basic polygon color + mpglColor4ub(204, 204, 204, 255); // Basic polygon color mpglTexCoord2f(0, 0); mpglVertex3f(x - 1, y + 1, z); @@ -275,7 +275,7 @@ mpglEnable(GL_BLEND); mpglEnable(GL_TEXTURE_2D); - mpglBlendFunc(GL_SRC_ALPHA, GL_ONE); + mpglBlendFunc(GL_ONE, GL_ONE); matrixview_reshape(w, h); }