Minor fixes to get SampleApp's OpenGL path not to crash on Linux. Initialize
authorsenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 May 2011 15:29:04 +0000 (15:29 +0000)
committersenorblanco@chromium.org <senorblanco@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 4 May 2011 15:29:04 +0000 (15:29 +0000)
commit2dbd0449bf1dfce02106c5d9394a59498f0d5b9f
tree53a3d38dfd2cfe91f33da5fa9a28de5f8547f53e
parent4b9b6a20d4bc3147c7ab8b755264f3ddda0e0e04
Minor fixes to get SampleApp's OpenGL path not to crash on Linux.  Initialize
SkOSWindow::fGLAttched (and fVi while we're at it), since it was being checked
uninitialized.  Don't call has_gl_extension() while initializing the
GrGLDefaultInterface, since it derefs the default interface (which is still
NULL); use has_gl_extension_from_string() instead.

Review URL:  http://codereview.appspot.com/4480041/

git-svn-id: http://skia.googlecode.com/svn/trunk@1242 2bbb7eff-a529-9590-31e7-b0007b416f81
gpu/src/unix/GrGLDefaultInterface_unix.cpp
src/utils/unix/SkOSWindow_Unix.cpp