Add validation check that linewidth func is present (we already call it on ES).
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Aug 2013 20:54:08 +0000 (20:54 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 20 Aug 2013 20:54:08 +0000 (20:54 +0000)
R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://chromiumcodereview.appspot.com/22842008

git-svn-id: http://skia.googlecode.com/svn/trunk@10839 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/gl/GrGLInterface.cpp

index 0aba95e..5dacd2d 100644 (file)
@@ -90,6 +90,7 @@ bool GrGLInterface::validate(GrGLBinding binding) const {
         NULL == fGetString ||
         NULL == fGetUniformLocation ||
         NULL == fLinkProgram ||
+        NULL == fLineWidth ||
         NULL == fPixelStorei ||
         NULL == fReadPixels ||
         NULL == fScissor ||
@@ -273,8 +274,7 @@ bool GrGLInterface::validate(GrGLBinding binding) const {
 
     // part of desktop GL, but not ES
     if (kDesktop_GrGLBinding == binding &&
-        (NULL == fLineWidth ||
-         NULL == fGetTexLevelParameteriv ||
+        (NULL == fGetTexLevelParameteriv ||
          NULL == fDrawBuffer ||
          NULL == fReadBuffer)) {
         return false;