Make glPatchParameteri required when tessellation is supported

Chrome started wrangling this entrypoint in the following CL:

https://chromium-review.googlesource.com/c/chromium/src/+/2253344

Change-Id: Ief4dfb1ddca8d86e0c09dfdc443e01830cb4de20
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/298405
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
This commit is contained in:
Chris Dalton 2020-06-23 10:57:16 -06:00 committed by Skia Commit-Bot
parent 3b6b747842
commit 7d7cd2b178
2 changed files with 3 additions and 5 deletions

View File

@ -178,7 +178,9 @@ bool GrGLInterface::validate() const {
(GR_IS_GR_GL_ES(fStandard) && (
(glVer >= GR_GL_VER(3,2)) ||
fExtensions.has("GL_OES_tessellation_shader")))) {
// all functions were marked optional or test_only
if (!fFunctions.fPatchParameteri) {
RETURN_FALSE_INTERFACE;
}
}
if ((GR_IS_GR_GL(fStandard) && (

View File

@ -103,10 +103,6 @@
"functions": [
"PatchParameteri",
],
// FIXME: Make this method non-optional once Chrome starts adding it to the interface.
"optional": [
"PatchParameteri",
]
},
{