From: YongGeol Jung Date: Tue, 9 Apr 2013 07:52:56 +0000 (+0900) Subject: Fix configuration for webgl surface which does not have alpha attribute. X-Git-Tag: 2.1_release~150^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=bfb1b8dd4bbc05a7a8bcb9349258cfe6a682c54a;p=framework%2Fweb%2Fwebkit-efl.git Fix configuration for webgl surface which does not have alpha attribute. [Title] Fix configuration for webgl surface which does not have alpha attribute. [Issue#] TWEB-1121 [Problem] getIntegerv(ALPHA_BITS) returns 8 even if alpha is none. [Cause] Configuration was wrong. [Solution] Fix configuration. Change-Id: I7ab508853325728f79cff49a5e5414affd50ef6f --- diff --git a/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp b/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp index c6a52b3..a53a8a0 100755 --- a/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp +++ b/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp @@ -187,7 +187,13 @@ bool PixmapContextTizen::initialize() configAttribs[i++] = EGL_BLUE_SIZE; configAttribs[i++] = 8; configAttribs[i++] = EGL_ALPHA_SIZE; - configAttribs[i++] = 8; + if (m_hasAlpha) + configAttribs[i++] = 8; + else { + configAttribs[i++] = 0; + configAttribs[i++] = EGL_CONFIG_CAVEAT; + configAttribs[i++] = EGL_NON_CONFORMANT_CONFIG; + } if (m_isLockable) { configAttribs[i++] = EGL_MATCH_FORMAT_KHR;