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;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// BufferSubData is slower on all drivers except NVIDIA...
|
||||||
|
#if 0
|
||||||
const char* vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
const char* vendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
|
||||||
if (std::strcmp(vendor, "ARM") == 0 || std::strcmp(vendor, "Qualcomm") == 0)
|
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);
|
return detail::BufferSubDataStreamBuffer::Create(target, size);
|
||||||
|
#else
|
||||||
|
return detail::BufferDataStreamBuffer::Create(target, size);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace GL
|
} // namespace GL
|
Loading…
Reference in New Issue