mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 09:35:40 +00:00
GL/StreamBuffer: Use glBufferData() on all drivers
This commit is contained in:
parent
745b53e4cb
commit
ea1066f76e
|
@ -286,6 +286,8 @@ std::unique_ptr<StreamBuffer> StreamBuffer::Create(GLenum target, u32 size)
|
|||
return buf;
|
||||
}
|
||||
|
||||
// BufferSubData is slower on all drivers except NVIDIA...
|
||||
#if 0
|
||||
const char* vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
||||
if (std::strcmp(vendor, "ARM") == 0 || std::strcmp(vendor, "Qualcomm") == 0)
|
||||
{
|
||||
|
@ -294,6 +296,9 @@ std::unique_ptr<StreamBuffer> StreamBuffer::Create(GLenum target, u32 size)
|
|||
}
|
||||
|
||||
return detail::BufferSubDataStreamBuffer::Create(target, size);
|
||||
#else
|
||||
return detail::BufferDataStreamBuffer::Create(target, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace GL
|
Loading…
Reference in a new issue