diff options
author | Juha-Pekka Heikkila <[email protected]> | 2013-12-19 05:27:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-12-19 08:25:58 -0700 |
commit | a7d8607d9ea4bfba31bd4eac00ab9a021db538e4 (patch) | |
tree | 6855cad3a00e71d82d778a36707374d1f8bf3b33 /src/mesa/main | |
parent | cd6aaf2920ae69d743e5efe62bc26fa5ae678732 (diff) |
mesa: Add asserts into emit_fog_instructions
Signed-off-by: Juha-Pekka Heikkila <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/ff_fragment_shader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/ff_fragment_shader.cpp b/src/mesa/main/ff_fragment_shader.cpp index 16715f635cb..6e91697a1b1 100644 --- a/src/mesa/main/ff_fragment_shader.cpp +++ b/src/mesa/main/ff_fragment_shader.cpp @@ -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"); |