OSDN Git Service

fix [2071412] work around mdp 32-bits fade limitation
authorMathias Agopian <mathias@google.com>
Wed, 28 Oct 2009 06:33:48 +0000 (23:33 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 28 Oct 2009 21:49:44 +0000 (14:49 -0700)
commit85ade33edcc7d9be462ad7b8455d27f6654aca5e
tree71756ba5ab83253d2fa611dcce3083de11eb948e
parent763ccae7d734cc7e55772936dc3f101a2bf453d4
fix [2071412] work around mdp 32-bits fade limitation

in the case where we fade a 32-bits surface (ie: GL_MODULATE w/ a,a,a,a + blending),
we first make a copy of the background into a RGB buffer, then we blend the 32-bits
surface as usual (without the alpha component), and finally blend the copy of
the background on top with 1-a. This uses a lot of bandwidth, but no CPU time.
opengl/libagl/copybit.cpp