mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
st/mesa: new comment about updating state vars
This commit is contained in:
parent
64244dfd39
commit
6c33e820d5
1 changed files with 5 additions and 0 deletions
|
|
@ -66,6 +66,11 @@ void st_upload_constants( struct st_context *st,
|
|||
if (params && params->NumParameters) {
|
||||
const uint paramBytes = params->NumParameters * sizeof(GLfloat) * 4;
|
||||
|
||||
/* Update the constants which come from fixed-function state, such as
|
||||
* transformation matrices, fog factors, etc. The rest of the values in
|
||||
* the parameters list are explicitly set by the user with glUniform,
|
||||
* glProgramParameter(), etc.
|
||||
*/
|
||||
_mesa_load_state_parameters(st->ctx, params);
|
||||
|
||||
/* We always need to get a new buffer, to keep the drivers simple and
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue