am 837d2f9e: Always set vertex alpha when drawing screenshot layers

* commit '837d2f9e83e7d8625ef482d9c9d9afa852c8dbaa':
  Always set vertex alpha when drawing screenshot layers
This commit is contained in:
Jesse Hall 2012-10-15 14:59:16 -07:00 committed by Android Git Automerger
commit c558269b1a

View File

@ -122,13 +122,14 @@ void LayerScreenshot::onDraw(const sp<const DisplayDevice>& hw, const Region& cl
} else { } else {
glEnable(GL_BLEND); glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(alpha, alpha, alpha, alpha);
glTexEnvx(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); glTexEnvx(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
} }
LayerMesh mesh; LayerMesh mesh;
computeGeometry(hw, &mesh); computeGeometry(hw, &mesh);
glColor4f(alpha, alpha, alpha, alpha);
glDisable(GL_TEXTURE_EXTERNAL_OES); glDisable(GL_TEXTURE_EXTERNAL_OES);
glEnable(GL_TEXTURE_2D); glEnable(GL_TEXTURE_2D);