Add PrimitiveMode packed GLenum.
Bug: angleproject:2574
Change-Id: I3d7bd7ca0d69a364a611dc04799ea34906fc4a6c
Reviewed-on: https://chromium-review.googlesource.com/1067114
Commit-Queue: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
diff --git a/src/libANGLE/validationES3.cpp b/src/libANGLE/validationES3.cpp
index 097d924..2fd2961 100644
--- a/src/libANGLE/validationES3.cpp
+++ b/src/libANGLE/validationES3.cpp
@@ -1253,7 +1253,7 @@
}
bool ValidateDrawRangeElements(Context *context,
- GLenum mode,
+ PrimitiveMode mode,
GLuint start,
GLuint end,
GLsizei count,
@@ -2122,7 +2122,7 @@
return ValidateGenOrDeleteES3(context, n);
}
-bool ValidateBeginTransformFeedback(Context *context, GLenum primitiveMode)
+bool ValidateBeginTransformFeedback(Context *context, PrimitiveMode primitiveMode)
{
if (context->getClientMajorVersion() < 3)
{
@@ -2131,9 +2131,9 @@
}
switch (primitiveMode)
{
- case GL_TRIANGLES:
- case GL_LINES:
- case GL_POINTS:
+ case PrimitiveMode::Triangles:
+ case PrimitiveMode::Lines:
+ case PrimitiveMode::Points:
break;
default:
@@ -2782,7 +2782,7 @@
}
bool ValidateDrawElementsInstanced(Context *context,
- GLenum mode,
+ PrimitiveMode mode,
GLsizei count,
GLenum type,
const void *indices,
@@ -3456,7 +3456,7 @@
}
bool ValidateDrawArraysInstanced(Context *context,
- GLenum mode,
+ PrimitiveMode mode,
GLint first,
GLsizei count,
GLsizei primcount)