Commit 47cdb2aa by Jamie Madill

Allow ConvertPrecision to return undefined.

The overly-restrictive check would fail on sampler types or other GL types with no defined precision. This fixes failures on the Debug GPU FYI bots. BUG=angle:691 Change-Id: I443b7038a7b7a05675898b9b21e6112b1ac4c5ca Reviewed-on: https://chromium-review.googlesource.com/206552Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 1da63af4
...@@ -87,7 +87,6 @@ static ShPrecisionType ConvertPrecision(sh::GLenum precision) ...@@ -87,7 +87,6 @@ static ShPrecisionType ConvertPrecision(sh::GLenum precision)
case GL_LOW_INT: case GL_LOW_INT:
return SH_PRECISION_LOWP; return SH_PRECISION_LOWP;
default: default:
UNREACHABLE();
return SH_PRECISION_UNDEFINED; return SH_PRECISION_UNDEFINED;
} }
} }
......
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