Lines Matching refs:old
67 struct gl_shader *old = *ptr; in _mesa_reference_shader() local
69 ASSERT(old->RefCount > 0); in _mesa_reference_shader()
70 old->RefCount--; in _mesa_reference_shader()
73 deleteFlag = (old->RefCount == 0); in _mesa_reference_shader()
76 if (old->Name != 0) in _mesa_reference_shader()
77 _mesa_HashRemove(ctx->Shared->ShaderObjects, old->Name); in _mesa_reference_shader()
78 ctx->Driver.DeleteShader(ctx, old); in _mesa_reference_shader()
207 struct gl_shader_program *old = *ptr; in _mesa_reference_shader_program() local
209 ASSERT(old->RefCount > 0); in _mesa_reference_shader_program()
210 old->RefCount--; in _mesa_reference_shader_program()
213 (void *) old, old->Name, old->RefCount); in _mesa_reference_shader_program()
215 deleteFlag = (old->RefCount == 0); in _mesa_reference_shader_program()
218 if (old->Name != 0) in _mesa_reference_shader_program()
219 _mesa_HashRemove(ctx->Shared->ShaderObjects, old->Name); in _mesa_reference_shader_program()
220 ctx->Driver.DeleteShaderProgram(ctx, old); in _mesa_reference_shader_program()