Fix crash with WebGL demos. 40/4040/2
authorKondapally Kalyan <kalyan.kondapally@intel.com>
Mon, 17 Jun 2013 22:26:44 +0000 (01:26 +0300)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 18 Jun 2013 06:48:05 +0000 (23:48 -0700)
commit2ffb3229b771fa286749b84434f80ffa5fc4b73e
tree4d32169e2a34dc1a9bc003bb720924347caf5993
parent2a40f60e5ee7b354722721de6bca34ac6fd1644b
Fix crash with WebGL demos.

While creating a new pixmap context, we obtain raw pointer after calling release.
The release call already passes the ownership and resets the temporary pointer to null.
The patch changes so that the raw pointer is obtained before passing the ownership.
Also removes an un-necessary makecurrent call. The patch also adds a null ptr check
in GraphicsContext3DOffscreen.

Change-Id: I14eaef21356c479885f575ea086c8ae7ced637e0
Source/WebCore/platform/graphics/efl/tizen/GraphicsContext3DOffscreen.cpp
Source/WebCore/platform/graphics/efl/tizen/SharedPlatformSurfaceTizen.cpp