diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-09-11 10:01:24 +0200 |
---|---|---|
committer | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-10-18 10:26:26 +0200 |
commit | 2e14749f8f82cba47ff89432cafd9fd9bee70e82 (patch) | |
tree | f150bb73cbae18999bf9ccf90f07ca0151d7235d /src/mesa/main/genmipmap.c | |
parent | fb804266a38dbd4204f86fc706494b285c03fc52 (diff) |
mesa: add EXT_dsa Generate*MipmapEXT functions
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/genmipmap.c')
-rw-r--r-- | src/mesa/main/genmipmap.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/mesa/main/genmipmap.c b/src/mesa/main/genmipmap.c index 6729631b16b..dcbe9675070 100644 --- a/src/mesa/main/genmipmap.c +++ b/src/mesa/main/genmipmap.c @@ -240,3 +240,30 @@ _mesa_GenerateTextureMipmap(GLuint texture) texObj = _mesa_lookup_texture_err(ctx, texture, "glGenerateTextureMipmap"); validate_params_and_generate_mipmap(texObj, "glGenerateTextureMipmap"); } + +void GLAPIENTRY +_mesa_GenerateTextureMipmapEXT(GLuint texture, GLenum target) +{ + struct gl_texture_object *texObj; + GET_CURRENT_CONTEXT(ctx); + + texObj = _mesa_lookup_or_create_texture(ctx, target, texture, + false, true, + "glGenerateTextureMipmapEXT"); + validate_params_and_generate_mipmap(texObj, + "glGenerateTextureMipmapEXT"); +} + +void GLAPIENTRY +_mesa_GenerateMultiTexMipmapEXT(GLenum texunit, GLenum target) +{ + struct gl_texture_object *texObj; + GET_CURRENT_CONTEXT(ctx); + + texObj = _mesa_get_texobj_by_target_and_texunit(ctx, target, + texunit - GL_TEXTURE0, + true, + "glGenerateMultiTexMipmapEXT"); + validate_params_and_generate_mipmap(texObj, + "glGenerateMultiTexMipmapEXT"); +} |