Lines Matching refs:Current
91 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_init_program()
93 assert(ctx->VertexProgram.Current); in _mesa_init_program()
97 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program()
99 assert(ctx->FragmentProgram.Current); in _mesa_init_program()
104 ctx->ATIFragmentShader.Current = ctx->Shared->DefaultFragmentShader; in _mesa_init_program()
105 assert(ctx->ATIFragmentShader.Current); in _mesa_init_program()
106 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program()
116 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_program_data()
118 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data()
122 if (ctx->ATIFragmentShader.Current) { in _mesa_free_program_data()
123 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data()
124 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data()
125 free(ctx->ATIFragmentShader.Current); in _mesa_free_program_data()
141 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_update_default_objects_program()
143 assert(ctx->VertexProgram.Current); in _mesa_update_default_objects_program()
145 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_update_default_objects_program()
147 assert(ctx->FragmentProgram.Current); in _mesa_update_default_objects_program()
150 if (ctx->ATIFragmentShader.Current) { in _mesa_update_default_objects_program()
151 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program()
152 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program()
153 free(ctx->ATIFragmentShader.Current); in _mesa_update_default_objects_program()
156 …ctx->ATIFragmentShader.Current = (struct ati_fragment_shader *) ctx->Shared->DefaultFragmentShader; in _mesa_update_default_objects_program()
157 assert(ctx->ATIFragmentShader.Current); in _mesa_update_default_objects_program()
158 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program()