mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-13 23:26:16 +00:00
D3D sync of new lambda API
This commit is contained in:
@@ -563,7 +563,13 @@ struct GLShaderDataBinding : IShaderDataBinding
|
||||
{
|
||||
m_ubufOffs.reserve(ubufCount);
|
||||
for (size_t i=0 ; i<ubufCount ; ++i)
|
||||
m_ubufOffs.emplace_back(ubufOffs[i], ubufSizes[i]);
|
||||
{
|
||||
#ifndef NDEBUG
|
||||
if (ubufOffs[i] % 256)
|
||||
Log.report(logvisor::Fatal, "non-256-byte-aligned uniform-offset %d provided to newShaderDataBinding", int(i));
|
||||
#endif
|
||||
m_ubufOffs.emplace_back(ubufOffs[i], (ubufSizes[i] + 255) & ~255);
|
||||
}
|
||||
}
|
||||
for (size_t i=0 ; i<ubufCount ; ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user