浏览代码

Remove unused texunit parameter to ctx->Driver.GenerateMipmap()

(cherry picked from commit c3395f4473)
tags/mesa_7_1_rc1
Brian 17 年前
父节点
当前提交
d4e1d85dba
共有 5 个文件被更改,包括 10 次插入29 次删除
  1. 1
    2
      src/mesa/main/dd.h
  2. 1
    1
      src/mesa/main/fbobject.c
  3. 0
    1
      src/mesa/main/mipmap.c
  4. 0
    1
      src/mesa/main/mipmap.h
  5. 8
    24
      src/mesa/main/texstore.c

+ 1
- 2
src/mesa/main/dd.h 查看文件

@@ -330,8 +330,7 @@ struct dd_function_table {
/**
* Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
*/
void (*GenerateMipmap)(GLcontext *ctx, GLenum target,
const struct gl_texture_unit *texUnit,
void (*GenerateMipmap)(GLcontext *ctx, GLenum target,
struct gl_texture_object *texObj);

/**

+ 1
- 1
src/mesa/main/fbobject.c 查看文件

@@ -1547,7 +1547,7 @@ _mesa_GenerateMipmapEXT(GLenum target)

/* XXX this might not handle cube maps correctly */
_mesa_lock_texture(ctx, texObj);
ctx->Driver.GenerateMipmap(ctx, target, texUnit, texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
_mesa_unlock_texture(ctx, texObj);

if (ctx->Driver.UnmapTexture)

+ 0
- 1
src/mesa/main/mipmap.c 查看文件

@@ -934,7 +934,6 @@ make_2d_stack_mipmap(const struct gl_texture_format *format, GLint border,
*/
void
_mesa_generate_mipmap(GLcontext *ctx, GLenum target,
const struct gl_texture_unit *texUnit,
struct gl_texture_object *texObj)
{
const struct gl_texture_image *srcImage;

+ 0
- 1
src/mesa/main/mipmap.h 查看文件

@@ -30,7 +30,6 @@

extern void
_mesa_generate_mipmap(GLcontext *ctx, GLenum target,
const struct gl_texture_unit *texUnit,
struct gl_texture_object *texObj);



+ 8
- 24
src/mesa/main/texstore.c 查看文件

@@ -2918,9 +2918,7 @@ _mesa_store_teximage1d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3004,9 +3002,7 @@ _mesa_store_teximage2d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3080,9 +3076,7 @@ _mesa_store_teximage3d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3128,9 +3122,7 @@ _mesa_store_texsubimage1d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3183,9 +3175,7 @@ _mesa_store_texsubimage2d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3238,9 +3228,7 @@ _mesa_store_texsubimage3d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, packing);
@@ -3314,9 +3302,7 @@ _mesa_store_compressed_teximage2d(GLcontext *ctx, GLenum target, GLint level,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, &ctx->Unpack);
@@ -3426,9 +3412,7 @@ _mesa_store_compressed_texsubimage2d(GLcontext *ctx, GLenum target,

/* GL_SGIS_generate_mipmap */
if (level == texObj->BaseLevel && texObj->GenerateMipmap) {
ctx->Driver.GenerateMipmap(ctx, target,
&ctx->Texture.Unit[ctx->Texture.CurrentUnit],
texObj);
ctx->Driver.GenerateMipmap(ctx, target, texObj);
}

_mesa_unmap_teximage_pbo(ctx, &ctx->Unpack);

正在加载...
取消
保存