return GL_INVALID_OPERATION;
break;
case GL_RGBA:
- if (ctx->Extensions.OES_texture_float && internalFormat == format)
+ if (_mesa_has_OES_texture_float(ctx) && internalFormat == format)
break;
default:
return GL_INVALID_OPERATION;
break;
case GL_HALF_FLOAT_OES:
- if (ctx->Extensions.OES_texture_half_float && internalFormat == format)
+ if (_mesa_has_OES_texture_half_float(ctx) && internalFormat == format)
break;
default:
return GL_INVALID_OPERATION;
return GL_INVALID_OPERATION;
break;
case GL_RGB:
- if (ctx->Extensions.OES_texture_float && internalFormat == format)
+ if (_mesa_has_OES_texture_float(ctx) && internalFormat == format)
break;
default:
return GL_INVALID_OPERATION;
break;
case GL_HALF_FLOAT_OES:
- if (!ctx->Extensions.OES_texture_half_float || internalFormat != format)
+ if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format)
return GL_INVALID_OPERATION;
break;
break;
case GL_RG:
if (_mesa_has_rg_textures(ctx) &&
- ctx->Extensions.OES_texture_half_float)
+ _mesa_has_OES_texture_half_float(ctx))
break;
/* fallthrough */
default:
break;
case GL_RG:
if (_mesa_has_rg_textures(ctx) &&
- ctx->Extensions.OES_texture_float)
+ _mesa_has_OES_texture_float(ctx))
break;
/* fallthrough */
default:
case GL_RG:
case GL_RED:
if (_mesa_has_rg_textures(ctx) &&
- ctx->Extensions.OES_texture_half_float)
+ _mesa_has_OES_texture_half_float(ctx))
break;
/* fallthrough */
default:
break;
case GL_RED:
if (_mesa_has_rg_textures(ctx) &&
- ctx->Extensions.OES_texture_float)
+ _mesa_has_OES_texture_float(ctx))
break;
/* fallthrough */
default:
case GL_LUMINANCE_ALPHA:
switch (type) {
case GL_FLOAT:
- if (!ctx->Extensions.OES_texture_float || internalFormat != format)
+ if (!_mesa_has_OES_texture_float(ctx) || internalFormat != format)
return GL_INVALID_OPERATION;
break;
case GL_HALF_FLOAT_OES:
- if (!ctx->Extensions.OES_texture_half_float || internalFormat != format)
+ if (!_mesa_has_OES_texture_half_float(ctx) || internalFormat != format)
return GL_INVALID_OPERATION;
break;
case GL_UNSIGNED_BYTE: