Intel fix
- GZDoom can launch for Intel users - IQMs work for Intel too
This commit is contained in:
parent
5b60118af2
commit
a8bab6a21d
2 changed files with 5 additions and 2 deletions
|
|
@ -103,8 +103,11 @@ int BoneBuffer::UploadBones(const TArray<VSMatrix>& bones)
|
|||
|
||||
int BoneBuffer::GetBinding(unsigned int index, size_t* pOffset, size_t* pSize)
|
||||
{
|
||||
unsigned int offset = index;
|
||||
|
||||
// this function will only get called if a uniform buffer is used. For a shader storage buffer we only need to bind the buffer once at the start.
|
||||
unsigned int offset = (index / mBlockAlign) * mBlockAlign;
|
||||
if (mBlockAlign > 0)
|
||||
offset = (index / mBlockAlign) * mBlockAlign;
|
||||
|
||||
*pOffset = offset * BONE_SIZE;
|
||||
*pSize = mBlockSize * BONE_SIZE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue