Require glSamplerParameterf and glGetFloatv

Bug: skia:13036
Change-Id: I7ac8dc1d9c8fcce195c6102c43ebc28bc293a593
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523430
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>
This commit is contained in:
Brian Salomon 2022-03-22 15:20:01 -04:00 committed by SkCQ
parent c18c7cbdfe
commit 8bed8855ab
2 changed files with 2 additions and 8 deletions

View File

@ -125,6 +125,7 @@ bool GrGLInterface::validate() const {
!fFunctions.fGenTextures ||
!fFunctions.fGetBufferParameteriv ||
!fFunctions.fGetError ||
!fFunctions.fGetFloatv ||
!fFunctions.fGetIntegerv ||
!fFunctions.fGetProgramInfoLog ||
!fFunctions.fGetProgramiv ||
@ -690,6 +691,7 @@ bool GrGLInterface::validate() const {
if (!fFunctions.fBindSampler ||
!fFunctions.fDeleteSamplers ||
!fFunctions.fGenSamplers ||
!fFunctions.fSamplerParameterf ||
!fFunctions.fSamplerParameteri ||
!fFunctions.fSamplerParameteriv) {
RETURN_FALSE_INTERFACE;

View File

@ -46,11 +46,6 @@
"VertexAttrib2fv", "VertexAttrib3fv", "VertexAttrib4fv", "VertexAttribPointer",
"Viewport",
],
// TODO: Remove 'optional' once Chrome sets this function in the interface.
"optional": [
"GetFloatv",
]
},
{ // GL exclusive core functions
"GL": [{"ext": "<core>"}],
@ -617,9 +612,6 @@
"BindSampler", "DeleteSamplers", "GenSamplers",
"SamplerParameterf", "SamplerParameteri", "SamplerParameteriv",
],
// TODO: Remove 'optional' once Chrome sets this function in the interface.
"optional": ["SamplerParameterf"]
},
{