Vulkan: Clamp the point size range to have a min value of 1.0
Bug: angleproject:2658
Change-Id: I32ff9aa27b064d9977eea0b83b18c52c4e42e38d
Reviewed-on: https://chromium-review.googlesource.com/1096054
Commit-Queue: Luc Ferron <lucferron@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/Context.cpp b/src/libANGLE/Context.cpp
index c3880b2..0ec0bfc 100644
--- a/src/libANGLE/Context.cpp
+++ b/src/libANGLE/Context.cpp
@@ -3126,9 +3126,11 @@
mCaps.maxTextureMatrixStackDepth = Caps::GlobalMatrixStackDepth;
}
- // Apply implementation limits
+ // Apply/Verify implementation limits
LimitCap(&mCaps.maxVertexAttributes, MAX_VERTEX_ATTRIBS);
+ ASSERT(mCaps.minAliasedPointSize >= 1.0f);
+
if (getClientVersion() < ES_3_1)
{
mCaps.maxVertexAttribBindings = mCaps.maxVertexAttributes;