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:
jp9000 2017-06-20 18:20:15 -07:00
parent bd9706c8ac
commit b775e579cb

View File

@ -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) {