Commit 9dc322d7 by Geoff Lang Committed by Commit Bot

GL: Make sure primitive restart emulation is disabled below GL 3.1

If the GL driver version is below 3.1, we cannot set the primitive restart fixed index (ES3 wont be supported anyway). Make sure the feature is disabled. Speculative fix for crbug.com/1073020 BUG=chromium:1073020 BUG=angleproject:3997 Change-Id: I67756b377aa951da2e70c26f7db978ede9010586 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2159289 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 03c18fbd
......@@ -1657,11 +1657,13 @@ void InitializeFeatures(const FunctionsGL *functions, angle::FeaturesGL *feature
ANGLE_FEATURE_CONDITION(features, unfoldShortCircuits, IsApple());
ANGLE_FEATURE_CONDITION(features, emulatePrimitiveRestartFixedIndex,
functions->standard == STANDARD_GL_DESKTOP &&
functions->isAtLeastGL(gl::Version(3, 1)) &&
!functions->isAtLeastGL(gl::Version(4, 3)));
ANGLE_FEATURE_CONDITION(
features, emulatePrimitiveRestartFixedIndex,
functions->standard == STANDARD_GL_DESKTOP && !functions->isAtLeastGL(gl::Version(4, 3)));
ANGLE_FEATURE_CONDITION(features, setPrimitiveRestartFixedIndexForDrawArrays,
IsApple() && isIntel);
features, setPrimitiveRestartFixedIndexForDrawArrays,
features->emulatePrimitiveRestartFixedIndex.enabled && IsApple() && isIntel);
ANGLE_FEATURE_CONDITION(features, removeDynamicIndexingOfSwizzledVector,
IsApple() || IsAndroid() || IsWindows());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment