mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
mesa: add _mesa_base_tex_image() helper function
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
d0fa559e49
commit
3a400cbb66
1 changed files with 10 additions and 0 deletions
|
|
@ -114,6 +114,16 @@ _mesa_get_tex_image(struct gl_context *ctx, struct gl_texture_object *texObj,
|
|||
GLenum target, GLint level);
|
||||
|
||||
|
||||
/**
|
||||
* Return the base-level texture image for the given texture object.
|
||||
*/
|
||||
static inline const struct gl_texture_image *
|
||||
_mesa_base_tex_image(const struct gl_texture_object *texObj)
|
||||
{
|
||||
return texObj->Image[0][texObj->BaseLevel];
|
||||
}
|
||||
|
||||
|
||||
extern GLint
|
||||
_mesa_max_texture_levels(struct gl_context *ctx, GLenum target);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue