Don't query for supported extensions 79/3879/1
authorKondapally Kalyan <kalyan.kondapally@intel.com>
Thu, 6 Jun 2013 21:58:03 +0000 (00:58 +0300)
committerKondapally Kalyan <kalyan.kondapally@intel.com>
Thu, 6 Jun 2013 21:58:03 +0000 (00:58 +0300)
This is a temporary fix to avoid crashing while
trying to query for supported extensions on platforms
other than X.

Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp

index 80fb724..cad2acc 100755 (executable)
@@ -117,6 +117,7 @@ PassOwnPtr<SharedPlatformSurfaceTizen> 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)