Change cefclient off-screen rendering example to account for premultiplied alpha values (issue #584).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@648 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
f82acbf9e0
commit
ab96ec27a4
|
@ -110,8 +110,8 @@ void ClientOSRenderer::Initialize() {
|
||||||
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
|
|
||||||
if (transparent_) {
|
if (transparent_) {
|
||||||
// Alpha blending style.
|
// Alpha blending style. Texture values have premultiplied alpha.
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
}
|
}
|
||||||
|
|
||||||
initialized_ = true;
|
initialized_ = true;
|
||||||
|
|
Loading…
Reference in New Issue