Use BindFragDataLocation (rather than indexed variant) for FS color output.

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



git-svn-id: http://skia.googlecode.com/svn/trunk@2299 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGLInterface.cpp b/gpu/src/GrGLInterface.cpp
index 4bbcfa5..e943d58 100644
--- a/gpu/src/GrGLInterface.cpp
+++ b/gpu/src/GrGLInterface.cpp
@@ -115,6 +115,7 @@
     fAttachShader = NULL;
     fBindAttribLocation = NULL;
     fBindBuffer = NULL;
+    fBindFragDataLocation = NULL;
     fBindTexture = NULL;
     fBlendColor = NULL;
     fBlendFunc = NULL;
@@ -406,6 +407,9 @@
                 return false;
             }
         }
+        if (major >= 3 && NULL == fBindFragDataLocation) {
+            return false;
+        }
         if (major >= 2 ||
             has_gl_extension_from_string("GL_ARB_draw_buffers", ext)) {
             if (NULL == fDrawBuffers) {