|
|
@@ -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); |