libobs-d3d11: Fix shader const array size miscalculation
When a shader constant was an array, the size of the array wouldn't be factored in to the actual constant size and constant buffer size.
This commit is contained in:
parent
bd9706c8ac
commit
b775e579cb
@ -149,6 +149,9 @@ void gs_shader::BuildConstantBuffer()
|
||||
continue;
|
||||
}
|
||||
|
||||
if (param.arrayCount)
|
||||
size *= param.arrayCount;
|
||||
|
||||
/* checks to see if this constant needs to start at a new
|
||||
* register */
|
||||
if (size && (constantSize & 15) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user