diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2019-04-30 13:37:12 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-08-06 17:03:06 -0400 |
commit | 0e595326c4d728f17abc7c72f9a263965ff65da9 (patch) | |
tree | 4ef8581dd85d9010d7acb9993965f9531f21ceee /src/mesa/main/texobj.h | |
parent | 58030d2b3ded667585f4f5e7bc459008f7ba7e8f (diff) |
mesa: add new helper _mesa_get_texobj_by_target_and_texunit
Based on the 'static get_texobj_by_target' function from texparam.c,
but extended to also take the texunit as a parameter.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/texobj.h')
-rw-r--r-- | src/mesa/main/texobj.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index 54399af5381..19f715159a2 100644 --- a/src/mesa/main/texobj.h +++ b/src/mesa/main/texobj.h @@ -59,6 +59,12 @@ extern struct gl_texture_object * _mesa_get_current_tex_object(struct gl_context *ctx, GLenum target); extern struct gl_texture_object * +_mesa_get_texobj_by_target_and_texunit(struct gl_context *ctx, GLenum target, + GLuint texunit, + bool allowProxyTargets, + const char* caller); + +extern struct gl_texture_object * _mesa_new_texture_object( struct gl_context *ctx, GLuint name, GLenum target ); extern void |