Lines Matching refs:Current
95 _mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, in _mesa_init_program()
97 assert(ctx->VertexProgram.Current); in _mesa_init_program()
107 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program()
109 assert(ctx->FragmentProgram.Current); in _mesa_init_program()
116 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, in _mesa_init_program()
124 ctx->ATIFragmentShader.Current = ctx->Shared->DefaultFragmentShader; in _mesa_init_program()
125 assert(ctx->ATIFragmentShader.Current); in _mesa_init_program()
126 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program()
138 _mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_program_data()
142 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data()
146 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, NULL); in _mesa_free_program_data()
151 if (ctx->ATIFragmentShader.Current) { in _mesa_free_program_data()
152 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_free_program_data()
153 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_free_program_data()
154 free(ctx->ATIFragmentShader.Current); in _mesa_free_program_data()
171 _mesa_reference_vertprog(ctx, &ctx->VertexProgram.Current, in _mesa_update_default_objects_program()
173 assert(ctx->VertexProgram.Current); in _mesa_update_default_objects_program()
177 _mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, in _mesa_update_default_objects_program()
179 assert(ctx->FragmentProgram.Current); in _mesa_update_default_objects_program()
183 _mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, in _mesa_update_default_objects_program()
189 if (ctx->ATIFragmentShader.Current) { in _mesa_update_default_objects_program()
190 ctx->ATIFragmentShader.Current->RefCount--; in _mesa_update_default_objects_program()
191 if (ctx->ATIFragmentShader.Current->RefCount <= 0) { in _mesa_update_default_objects_program()
192 free(ctx->ATIFragmentShader.Current); in _mesa_update_default_objects_program()
195 …ctx->ATIFragmentShader.Current = (struct ati_fragment_shader *) ctx->Shared->DefaultFragmentShader; in _mesa_update_default_objects_program()
196 assert(ctx->ATIFragmentShader.Current); in _mesa_update_default_objects_program()
197 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_update_default_objects_program()