From bfb1b8dd4bbc05a7a8bcb9349258cfe6a682c54a Mon Sep 17 00:00:00 2001 From: YongGeol Jung Date: Tue, 9 Apr 2013 16:52:56 +0900 Subject: [PATCH] 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 --- .../platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; -- 2.7.4