mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
mesa: rename texstorage() to texstorage_error()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
30c36ff335
commit
14f1613c6f
1 changed files with 9 additions and 8 deletions
|
|
@ -491,8 +491,9 @@ texture_storage_error(struct gl_context *ctx, GLuint dims,
|
|||
* 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);
|
||||
|
|
@ -578,8 +579,8 @@ void GLAPIENTRY
|
|||
_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");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -587,8 +588,8 @@ void GLAPIENTRY
|
|||
_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");
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -596,8 +597,8 @@ void GLAPIENTRY
|
|||
_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");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue