mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
st/mesa: calculate buffer size correctly for packed uniforms
Fixes: edded12376 ("mesa: rework ParameterList to allow packing")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
fb02bd3d1c
commit
9ec4a5ef29
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ st_upload_constants(struct st_context *st, struct gl_program *prog)
|
|||
/* update constants */
|
||||
if (params && params->NumParameters) {
|
||||
struct pipe_constant_buffer cb;
|
||||
const uint paramBytes = params->NumParameters * sizeof(GLfloat) * 4;
|
||||
const uint paramBytes = params->NumParameterValues * sizeof(GLfloat);
|
||||
|
||||
/* Update the constants which come from fixed-function state, such as
|
||||
* transformation matrices, fog factors, etc. The rest of the values in
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue