mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 14:20:11 +01:00
mesa: Add asserts into emit_fog_instructions
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
cd6aaf2920
commit
a7d8607d9e
1 changed files with 3 additions and 0 deletions
|
|
@ -1159,8 +1159,11 @@ emit_fog_instructions(texenv_fragment_program *p,
|
|||
fragcolor = swizzle_xyz(fog_result);
|
||||
|
||||
oparams = p->shader->symbols->get_variable("gl_FogParamsOptimizedMESA");
|
||||
assert(oparams);
|
||||
fogcoord = p->shader->symbols->get_variable("gl_FogFragCoord");
|
||||
assert(fogcoord);
|
||||
params = p->shader->symbols->get_variable("gl_Fog");
|
||||
assert(params);
|
||||
f = new(p->mem_ctx) ir_dereference_variable(fogcoord);
|
||||
|
||||
ir_variable *f_var = p->make_temp(glsl_type::float_type, "fog_factor");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue