Bug 1855780 - Generate INVALID_ENUM in ProvokingVertex for bad mode. r=gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D193828
This commit is contained in:
@@ -5845,7 +5845,10 @@ void ClientWebGLContext::ProvokingVertex(const GLenum rawMode) const {
|
||||
if (IsContextLost()) return;
|
||||
|
||||
const auto mode = webgl::AsEnumCase<webgl::ProvokingVertex>(rawMode);
|
||||
if (!mode) return;
|
||||
if (!mode) {
|
||||
EnqueueError_ArgEnum("mode", rawMode);
|
||||
return;
|
||||
}
|
||||
|
||||
Run<RPROC(ProvokingVertex)>(*mode);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user