Fix Mesa check + whitespace

This commit is contained in:
Moonchild 2022-04-09 01:59:40 +02:00 committed by roytam1
commit 15065117ff

View file

@ -1066,7 +1066,7 @@ WebGLContext::DoFakeVertexAttrib0(const char* funcName, GLuint vertexCount)
vertexCount = 1;
}
if (gl->WorkAroundDriverBugs() && gl->IsMesa()) {
if (gl->WorkAroundDriverBugs() && gl->Vendor() == gl::GLVendor::Nouveau) {
// Padded/strided to vec4, so 4x4bytes.
const auto effectiveVertAttribBytes = CheckedInt<int32_t>(vertexCount) * 4 * 4;
if (!effectiveVertAttribBytes.isValid()) {