rhi: gl: Remove fake uniform buffer offset alignment requirement

Change-Id: I5408e53f90c1c19836c400659bac15a8690c6ae8
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
This commit is contained in:
Laszlo Agocs 2019-09-26 16:42:59 +02:00 committed by Paul Olav Tvete
parent cd5a0bc735
commit 08a601035c

View File

@ -583,7 +583,9 @@ QRhiBuffer *QRhiGles2::createBuffer(QRhiBuffer::Type type, QRhiBuffer::UsageFlag
int QRhiGles2::ubufAlignment() const int QRhiGles2::ubufAlignment() const
{ {
return 256; // No real uniform buffers are used so no need to pretend there is any
// alignment requirement.
return 1;
} }
bool QRhiGles2::isYUpInFramebuffer() const bool QRhiGles2::isYUpInFramebuffer() const