GL/StreamBuffer: Use glBufferData() on all drivers

This commit is contained in:
Connor McLaughlin 2020-06-28 21:44:45 +10:00
parent 745b53e4cb
commit ea1066f76e

View file

@ -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