Bug 1751008 - Ensure we mark GLFeature::transform_feedback2 as unsupported if symbol load fails. r=jgilbert

When loading the symbols for transform_feedback2, we marked it as for
texture_storage. This would mean that if draw_buffers_indexed loading
failed, and we checked for the feature support, it would indicate it is
supported even though it is backed by nothing.

Differential Revision: https://phabricator.services.mozilla.com/D136388
This commit is contained in:
Andrew Osmond 2022-01-27 12:48:13 +00:00
Родитель cca6dcd89b
Коммит e2794c0b45
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1152,7 +1152,7 @@ void GLContext::LoadMoreSymbols(const SymbolLoader& loader) {
{ (PRFuncPtr*) &mSymbols.fResumeTransformFeedback, {{ "glResumeTransformFeedbackNV" }} },
END_SYMBOLS
};
if (!fnLoadFeatureByCore(coreSymbols, extSymbols, GLFeature::texture_storage)) {
if (!fnLoadFeatureByCore(coreSymbols, extSymbols, GLFeature::transform_feedback2)) {
// Also mark bind_buffer_offset as unsupported.
MarkUnsupported(GLFeature::bind_buffer_offset);
}