From 15065117ff48bf22672e8f621e3f74fb8d47375d Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sat, 9 Apr 2022 01:59:40 +0200 Subject: [PATCH] Fix Mesa check + whitespace --- dom/canvas/WebGLContextDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom/canvas/WebGLContextDraw.cpp b/dom/canvas/WebGLContextDraw.cpp index def5fb0ef3..c0ba20301a 100644 --- a/dom/canvas/WebGLContextDraw.cpp +++ b/dom/canvas/WebGLContextDraw.cpp @@ -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(vertexCount) * 4 * 4; if (!effectiveVertAttribBytes.isValid()) {