From 295a87f6c211322faefc4ef7f88f02722973f5b6 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 3 May 2010 16:13:20 -0600 Subject: st/mesa: remove unused needFlush parameter to st_finalize_texture() --- src/mesa/state_tracker/st_cb_texture.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/mesa/state_tracker/st_cb_texture.c') diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 5021dcbcb60..ed8eb2929a6 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -1812,8 +1812,7 @@ copy_image_data_to_texture(struct st_context *st, GLboolean st_finalize_texture(GLcontext *ctx, struct pipe_context *pipe, - struct gl_texture_object *tObj, - GLboolean *needFlush) + struct gl_texture_object *tObj) { struct st_context *st = st_context(ctx); struct st_texture_object *stObj = st_texture_object(tObj); @@ -1822,8 +1821,6 @@ st_finalize_texture(GLcontext *ctx, struct st_texture_image *firstImage; enum pipe_format firstImageFormat; - *needFlush = GL_FALSE; - if (stObj->base._Complete) { /* The texture is complete and we know exactly how many mipmap levels * are present/needed. This is conditional because we may be called @@ -1908,7 +1905,6 @@ st_finalize_texture(GLcontext *ctx, */ if (stImage && stObj->pt != stImage->pt) { copy_image_data_to_texture(st, stObj, level, stImage); - *needFlush = GL_TRUE; } } } -- cgit v1.2.3