Commit 1ae8d2dd by Alexey Knyazev Committed by Commit Bot

Fix blendable FP32 texture caps on ES2 contexts

Although the EXT_float_blend extension is defined only for ES 3.0+, ANGLE exposes it on ES 2.0 client contexts. Bug: angleproject:4595 Change-Id: I7451062ed8b1ab4eb18a8c7c1d37ee7383c8ea4b Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2172738 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 28300e6f
......@@ -324,7 +324,9 @@ static bool SizedFloatRGBARenderableSupport(const Version &clientVersion,
static bool Float32BlendableSupport(const Version &clientVersion, const Extensions &extensions)
{
return extensions.colorBufferFloat && extensions.floatBlend;
// EXT_float_blend may be exposed on ES2 client contexts. Ensure that RGBA32F is renderable.
return (extensions.colorBufferFloatRGBA || extensions.colorBufferFloat) &&
extensions.floatBlend;
}
InternalFormat::InternalFormat()
......
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