GL/StreamBuffer: Use partial instead of exact match for NVIDIA

It's "NVIDIA Corporation" on Macs, and on Windows we don't support any
GL3 GPUs anyway.
This commit is contained in:
Connor McLaughlin 2021-10-30 16:55:35 +10:00 committed by refractionpcsx2
parent c09240de3b
commit 20ab4dbf20
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ namespace GL
// BufferSubData is slower on all drivers except NVIDIA...
const char* vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
if (std::strcmp(vendor, "NVIDIA") == 0)
if (std::strstr(vendor, "NVIDIA"))
return detail::BufferSubDataStreamBuffer::Create(target, size);
else
return detail::BufferDataStreamBuffer::Create(target, size);