# HG changeset patch # User reimar # Date 1371063256 0 # Node ID 33b774ea1ae62e5547f86103607fbe06ae50cde2 # Parent 406e87858d1fb524778838876744080d302e9d98 Simplify blend function used. diff -r 406e87858d1f -r 33b774ea1ae6 libvo/matrixview.c --- 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); }