mesa: Add driver entry point for ARB_texture_view

Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Courtney Goeltzenleuchter 2013-11-04 14:09:22 -07:00 committed by Brian Paul
parent f1563e6392
commit 320ec1deac
2 changed files with 8 additions and 0 deletions

View file

@ -211,6 +211,9 @@ _mesa_init_driver_functions(struct dd_function_table *driver)
/* GL_ARB_texture_storage */
driver->AllocTextureStorage = _mesa_alloc_texture_storage;
/* GL_ARB_texture_view */
driver->TextureView = NULL;
/* GL_ARB_texture_multisample */
driver->GetSamplePosition = NULL;
}

View file

@ -375,6 +375,11 @@ struct dd_function_table {
GLsizei levels, GLsizei width,
GLsizei height, GLsizei depth);
/** Called as part of glTextureView to add views to origTexObj */
GLboolean (*TextureView)(struct gl_context *ctx,
struct gl_texture_object *texObj,
struct gl_texture_object *origTexObj);
/**
* Map a renderbuffer into user space.
* \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT and