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:
parent
3b6b747842
commit
7d7cd2b178
@ -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) && (
|
||||
|
@ -103,10 +103,6 @@
|
||||
"functions": [
|
||||
"PatchParameteri",
|
||||
],
|
||||
// FIXME: Make this method non-optional once Chrome starts adding it to the interface.
|
||||
"optional": [
|
||||
"PatchParameteri",
|
||||
]
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user