mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
c09240de3b
commit
20ab4dbf20
|
@ -323,7 +323,7 @@ namespace GL
|
||||||
|
|
||||||
// BufferSubData is slower on all drivers except NVIDIA...
|
// BufferSubData is slower on all drivers except NVIDIA...
|
||||||
const char* vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
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);
|
return detail::BufferSubDataStreamBuffer::Create(target, size);
|
||||||
else
|
else
|
||||||
return detail::BufferDataStreamBuffer::Create(target, size);
|
return detail::BufferDataStreamBuffer::Create(target, size);
|
||||||
|
|
Loading…
Reference in New Issue