Add validation check that linewidth func is present (we already call it on ES).
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
This commit is contained in:
parent
2b343cc255
commit
941df4fb5b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user