Commit 62e7cd2aca3f07438a8b25658918b3c87e6ebda6

  • avatar
  • Chia-I Wu <olvaffe @gm…l.com>
  • Tue Sep 15 17:51:18 CEST 2009
mesa: Save META_SHADER in _mesa_meta_draw_tex.
  
20612061
20622062/**
20632063 * Meta implementation of ctx->Driver.DrawTex() in terms
2064 * of texture mapping and polygon rendering.
2064 * of polygon rendering.
20652065 */
20662066void
20672067_mesa_meta_draw_tex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z,
20722072 GLfloat x, y, z, st[MAX_TEXTURE_UNITS][2];
20732073 };
20742074 struct vertex verts[4];
2075 GLboolean vp_enabled;
20762075 GLuint i;
20772076
20782077 _mesa_meta_begin(ctx, (META_RASTERIZATION |
2078 META_SHADER |
20792079 META_TRANSFORM |
20802080 META_VERTEX |
20812081 META_VIEWPORT));
2082 vp_enabled = ctx->VertexProgram.Enabled;
2083 if (vp_enabled)
2084 _mesa_set_enable(ctx, GL_VERTEX_PROGRAM_ARB, GL_FALSE);
20852082
20862083 if (drawtex->ArrayObj == 0) {
20872084 /* one-time setup */
21712171
21722172 _mesa_DrawArrays(GL_TRIANGLE_FAN, 0, 4);
21732173
2174 if (vp_enabled)
2175 _mesa_set_enable(ctx, GL_VERTEX_PROGRAM_ARB, GL_TRUE);
21762174 _mesa_meta_end(ctx);
21772175}
21782176