[Texmap] Allow TextureMapperGL to work without a GraphicsContext
authornoam.rosenthal@nokia.com <noam.rosenthal@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 09:45:13 +0000 (09:45 +0000)
committernoam.rosenthal@nokia.com <noam.rosenthal@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 09:45:13 +0000 (09:45 +0000)
commitc91121f64d67361c7480285765d5c1677bc9eb71
treef3040e8c48de0d73def3ba9f297007f8c3f0437a
parentf73f997e37de852795cb94f16f053c684c16b185
[Texmap] Allow TextureMapperGL to work without a GraphicsContext
https://bugs.webkit.org/show_bug.cgi?id=68980

Reviewed by Andreas Kling.

Perform a null-check for m_context and initialize that variable.
If a graphics-context doesn't exist, we don't need to reset it.

No new functionality so no new tests.

* platform/graphics/opengl/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::TextureMapperGL):
(WebCore::TextureMapperGL::beginPainting):
(WebCore::TextureMapperGL::endPainting):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/opengl/TextureMapperGL.cpp