* Helper used by _mesa_TexStorage1/2/3D().
*/
static void
-texstorage(GLuint dims, GLenum target, GLsizei levels, GLenum internalformat,
- GLsizei width, GLsizei height, GLsizei depth, const char *caller)
+texstorage_error(GLuint dims, GLenum target, GLsizei levels,
+ GLenum internalformat, GLsizei width, GLsizei height,
+ GLsizei depth, const char *caller)
{
struct gl_texture_object *texObj;
GET_CURRENT_CONTEXT(ctx);
_mesa_TexStorage1D(GLenum target, GLsizei levels, GLenum internalformat,
GLsizei width)
{
- texstorage(1, target, levels, internalformat, width, 1, 1,
- "glTexStorage1D");
+ texstorage_error(1, target, levels, internalformat, width, 1, 1,
+ "glTexStorage1D");
}
_mesa_TexStorage2D(GLenum target, GLsizei levels, GLenum internalformat,
GLsizei width, GLsizei height)
{
- texstorage(2, target, levels, internalformat, width, height, 1,
- "glTexStorage2D");
+ texstorage_error(2, target, levels, internalformat, width, height, 1,
+ "glTexStorage2D");
}
_mesa_TexStorage3D(GLenum target, GLsizei levels, GLenum internalformat,
GLsizei width, GLsizei height, GLsizei depth)
{
- texstorage(3, target, levels, internalformat, width, height, depth,
- "glTexStorage3D");
+ texstorage_error(3, target, levels, internalformat, width, height, depth,
+ "glTexStorage3D");
}