mesa: add some comments about mipmap generation

Trivial.
This commit is contained in:
Brian Paul
2014-01-31 17:38:35 -07:00
parent e286b63c8f
commit c55e3e6811
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -256,6 +256,10 @@ struct dd_function_table {
/**
* Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled.
* Note that if the texture is a cube map, the <target> parameter will
* indicate which cube face to generate (GL_POSITIVE/NEGATIVE_X/Y/Z).
* texObj->BaseLevel is the level from which to generate the remaining
* mipmap levels.
*/
void (*GenerateMipmap)(struct gl_context *ctx, GLenum target,
struct gl_texture_object *texObj);
+5
View File
@@ -2977,6 +2977,11 @@ invalid_pname_enum:
}
/**
* Generate all the mipmap levels below the base level.
* Note: this GL function would be more useful if one could specify a
* cube face, a set of array slices, etc.
*/
void GLAPIENTRY
_mesa_GenerateMipmap(GLenum target)
{