mesa: replace ParameterValueOffset[i] with Parameters[i].ValueOffset
to merge both arrays and remove malloc because both arrays have the same size. Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
This commit is contained in:
@@ -2556,7 +2556,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
|
||||
break;
|
||||
}
|
||||
|
||||
unsigned pvo = params->ParameterValueOffset[i];
|
||||
unsigned pvo = params->Parameters[i].ValueOffset;
|
||||
_mesa_uniform_attach_driver_storage(storage, dmul * columns, dmul,
|
||||
format,
|
||||
¶ms->ParameterValues[pvo]);
|
||||
|
Reference in New Issue
Block a user