@@ -6816,11 +6816,6 @@ bool ValidateGetTexParameterBase(const Context *context,
68166816 case GL_TEXTURE_CROP_RECT_OES :
68176817 // TODO(lfy@google.com): Restrict to GL_OES_draw_texture
68186818 // after GL_OES_draw_texture functionality implemented
6819- if (context->getClientVersion () >= ES_2_0 )
6820- {
6821- ANGLE_VALIDATION_ERROR (GL_INVALID_ENUM , kGLES1Only );
6822- return false ;
6823- }
68246819 break ;
68256820
68266821 case GL_MEMORY_SIZE_ANGLE :
@@ -7352,7 +7347,7 @@ bool ValidateTexParameterBase(const Context *context,
73527347 return false ;
73537348 }
73547349
7355- if (context-> getClientVersion () < ES_2_0 && !IsValidGLES1TextureParameter (pname))
7350+ if (!IsValidGLES1TextureParameter (pname))
73567351 {
73577352 ANGLE_VALIDATION_ERRORF (GL_INVALID_ENUM , kEnumNotSupported , pname);
73587353 return false ;
@@ -7395,11 +7390,6 @@ bool ValidateTexParameterBase(const Context *context,
73957390
73967391 case GL_GENERATE_MIPMAP :
73977392 case GL_TEXTURE_CROP_RECT_OES :
7398- if (context->getClientVersion () >= ES_2_0 )
7399- {
7400- ANGLE_VALIDATION_ERROR (GL_INVALID_ENUM , kGLES1Only );
7401- return false ;
7402- }
74037393 break ;
74047394
74057395 default :
@@ -7600,19 +7590,9 @@ bool ValidateTexParameterBase(const Context *context,
76007590 break ;
76017591
76027592 case GL_GENERATE_MIPMAP :
7603- if (context->getClientVersion () >= ES_2_0 )
7604- {
7605- ANGLE_VALIDATION_ERROR (GL_INVALID_ENUM , kGLES1Only );
7606- return false ;
7607- }
76087593 break ;
76097594
76107595 case GL_TEXTURE_CROP_RECT_OES :
7611- if (context->getClientVersion () >= ES_2_0 )
7612- {
7613- ANGLE_VALIDATION_ERROR (GL_INVALID_ENUM , kGLES1Only );
7614- return false ;
7615- }
76167596 if (entryPoint == angle::EntryPoint::GLTexParameterf ||
76177597 entryPoint == angle::EntryPoint::GLTexParameteri ||
76187598 entryPoint == angle::EntryPoint::GLTexParameterx)
0 commit comments