From 7adcbe0fa42e1c213d92786dbf6b83a6cbeeba11 Mon Sep 17 00:00:00 2001 From: Kondapally Kalyan Date: Fri, 7 Jun 2013 00:58:03 +0300 Subject: [PATCH] Don't query for supported extensions This is a temporary fix to avoid crashing while trying to query for supported extensions on platforms other than X. --- .../platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp b/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp index 80fb724..cad2acc 100755 --- a/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp +++ b/Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp @@ -117,6 +117,7 @@ PassOwnPtr SharedPlatformSurfaceTizen::create(const bool SharedPlatformSurfaceTizen::supportsLockSurfaceExtension() { +#if PLATFORM(X11) static bool extSupportQueried = false; static bool supportLockSurfaceExt = false; @@ -131,6 +132,9 @@ bool SharedPlatformSurfaceTizen::supportsLockSurfaceExtension() supportLockSurfaceExt = GLPlatformContext::supportsEGLExtension(display, "EGL_KHR_lock_surface"); return supportLockSurfaceExt; +#else + return false; +#endif } SharedPlatformSurfaceTizen::SharedPlatformSurfaceTizen(const IntSize& size, bool lockable, bool hasAlpha, bool hasDepth, bool hasStencil) -- 2.7.4