mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
Fix Mesa check + whitespace
This commit is contained in:
parent
168e8bebd0
commit
15065117ff
1 changed files with 1 additions and 1 deletions
|
|
@ -1066,7 +1066,7 @@ WebGLContext::DoFakeVertexAttrib0(const char* funcName, GLuint vertexCount)
|
||||||
vertexCount = 1;
|
vertexCount = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gl->WorkAroundDriverBugs() && gl->IsMesa()) {
|
if (gl->WorkAroundDriverBugs() && gl->Vendor() == gl::GLVendor::Nouveau) {
|
||||||
// Padded/strided to vec4, so 4x4bytes.
|
// Padded/strided to vec4, so 4x4bytes.
|
||||||
const auto effectiveVertAttribBytes = CheckedInt<int32_t>(vertexCount) * 4 * 4;
|
const auto effectiveVertAttribBytes = CheckedInt<int32_t>(vertexCount) * 4 * 4;
|
||||||
if (!effectiveVertAttribBytes.isValid()) {
|
if (!effectiveVertAttribBytes.isValid()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue