mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-11 09:35:33 +01:00
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);
|
||||
|
||||
if (transparent_) {
|
||||
// Alpha blending style.
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
// Alpha blending style. Texture values have premultiplied alpha.
|
||||
glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);
|
||||
}
|
||||
|
||||
initialized_ = true;
|
||||
|
Loading…
Reference in New Issue
Block a user