"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mesa/main/shaderapi.c" between
mesa-19.1.3.tar.xz and mesa-19.1.4.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Latest release.

shaderapi.c  (mesa-19.1.3.tar.xz):shaderapi.c  (mesa-19.1.4.tar.xz)
skipping to change at line 163 skipping to change at line 163
* Free the per-context shader-related state. * Free the per-context shader-related state.
*/ */
void void
_mesa_free_shader_state(struct gl_context *ctx) _mesa_free_shader_state(struct gl_context *ctx)
{ {
for (int i = 0; i < MESA_SHADER_STAGES; i++) { for (int i = 0; i < MESA_SHADER_STAGES; i++) {
_mesa_reference_program(ctx, &ctx->Shader.CurrentProgram[i], NULL); _mesa_reference_program(ctx, &ctx->Shader.CurrentProgram[i], NULL);
_mesa_reference_shader_program(ctx, _mesa_reference_shader_program(ctx,
&ctx->Shader.ReferencedPrograms[i], &ctx->Shader.ReferencedPrograms[i],
NULL); NULL);
free(ctx->SubroutineIndex[i].IndexPtr);
ctx->SubroutineIndex[i].IndexPtr = NULL;
} }
_mesa_reference_shader_program(ctx, &ctx->Shader.ActiveProgram, NULL); _mesa_reference_shader_program(ctx, &ctx->Shader.ActiveProgram, NULL);
/* Extended for ARB_separate_shader_objects */ /* Extended for ARB_separate_shader_objects */
_mesa_reference_pipeline_object(ctx, &ctx->_Shader, NULL); _mesa_reference_pipeline_object(ctx, &ctx->_Shader, NULL);
assert(ctx->Shader.RefCount == 1); assert(ctx->Shader.RefCount == 1);
} }
/** /**
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)