summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/common/meta.c
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-23 14:45:37 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-23 14:45:37 +0800
commit1ba61c244fe2759ddc0c60e9cabf2b9dbe2544ce (patch)
treef880e160d503efcf7be5ec9ac19f6163999352f1 /src/mesa/drivers/common/meta.c
parent6059e6a8f25e15e934a268d1f022044736f8ba33 (diff)
parentdce62509e5d3f7fb8c5890fac51ec2d218c15960 (diff)
Merge branch 'mesa-es' into android
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r--src/mesa/drivers/common/meta.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index 5c794ee443..896e258712 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -2061,7 +2061,7 @@ _mesa_meta_generate_mipmap(GLcontext *ctx, GLenum target,
/**
* Meta implementation of ctx->Driver.DrawTex() in terms
- * of texture mapping and polygon rendering.
+ * of polygon rendering.
*/
void
_mesa_meta_draw_tex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z,
@@ -2072,16 +2072,13 @@ _mesa_meta_draw_tex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z,
GLfloat x, y, z, st[MAX_TEXTURE_UNITS][2];
};
struct vertex verts[4];
- GLboolean vp_enabled;
GLuint i;
_mesa_meta_begin(ctx, (META_RASTERIZATION |
+ META_SHADER |
META_TRANSFORM |
META_VERTEX |
META_VIEWPORT));
- vp_enabled = ctx->VertexProgram.Enabled;
- if (vp_enabled)
- _mesa_set_enable(ctx, GL_VERTEX_PROGRAM_ARB, GL_FALSE);
if (drawtex->ArrayObj == 0) {
/* one-time setup */
@@ -2112,8 +2109,8 @@ _mesa_meta_draw_tex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z,
/* vertex positions, texcoords */
{
- const GLfloat x1 = x + width * ctx->Pixel.ZoomX;
- const GLfloat y1 = y + height * ctx->Pixel.ZoomY;
+ const GLfloat x1 = x + width;
+ const GLfloat y1 = y + height;
verts[0].x = x;
verts[0].y = y;
@@ -2174,8 +2171,6 @@ _mesa_meta_draw_tex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z,
_mesa_DrawArrays(GL_TRIANGLE_FAN, 0, 4);
- if (vp_enabled)
- _mesa_set_enable(ctx, GL_VERTEX_PROGRAM_ARB, GL_TRUE);
_mesa_meta_end(ctx);
}