mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Free the blended frame data.
This commit is contained in:
parent
551dfc47fb
commit
74cb49ef7c
1 changed files with 2 additions and 1 deletions
|
@ -237,7 +237,6 @@ glsl_R_DrawIQM (void)
|
||||||
qfeglUniform4fv (l->position.location, 1, quat_origin);
|
qfeglUniform4fv (l->position.location, 1, quat_origin);
|
||||||
qfeglUniform4fv (l->color.location, 1, quat_origin);
|
qfeglUniform4fv (l->color.location, 1, quat_origin);
|
||||||
}
|
}
|
||||||
free (lights);
|
|
||||||
|
|
||||||
qfeglUniformMatrix4fv (iqm_shader.mvp_matrix.location, 1, false, mvp_mat);
|
qfeglUniformMatrix4fv (iqm_shader.mvp_matrix.location, 1, false, mvp_mat);
|
||||||
qfeglUniformMatrix3fv (iqm_shader.norm_matrix.location, 1, false,
|
qfeglUniformMatrix3fv (iqm_shader.norm_matrix.location, 1, false,
|
||||||
|
@ -251,6 +250,8 @@ glsl_R_DrawIQM (void)
|
||||||
GL_UNSIGNED_SHORT,
|
GL_UNSIGNED_SHORT,
|
||||||
iqm->elements + 3 * iqm->meshes[i].first_triangle);
|
iqm->elements + 3 * iqm->meshes[i].first_triangle);
|
||||||
}
|
}
|
||||||
|
free (frame);
|
||||||
|
free (lights);
|
||||||
}
|
}
|
||||||
|
|
||||||
// All iqm models are drawn in a batch, so avoid thrashing the gl state
|
// All iqm models are drawn in a batch, so avoid thrashing the gl state
|
||||||
|
|
Loading…
Reference in a new issue