mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
mesa: fix indentation in _mesa_create_nameless_texture()
This commit is contained in:
parent
aa249190a5
commit
78f908c54b
1 changed files with 10 additions and 10 deletions
|
|
@ -1192,18 +1192,18 @@ invalidate_tex_image_error_check(struct gl_context *ctx, GLuint texture,
|
|||
struct gl_texture_object *
|
||||
_mesa_create_nameless_texture(struct gl_context *ctx, GLenum target)
|
||||
{
|
||||
struct gl_texture_object *texObj = NULL;
|
||||
GLint targetIndex;
|
||||
|
||||
if (target == 0)
|
||||
return texObj;
|
||||
|
||||
texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
|
||||
targetIndex = _mesa_tex_target_to_index(ctx, texObj->Target);
|
||||
assert(targetIndex < NUM_TEXTURE_TARGETS);
|
||||
texObj->TargetIndex = targetIndex;
|
||||
struct gl_texture_object *texObj = NULL;
|
||||
GLint targetIndex;
|
||||
|
||||
if (target == 0)
|
||||
return texObj;
|
||||
|
||||
texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
|
||||
targetIndex = _mesa_tex_target_to_index(ctx, texObj->Target);
|
||||
assert(targetIndex < NUM_TEXTURE_TARGETS);
|
||||
texObj->TargetIndex = targetIndex;
|
||||
|
||||
return texObj;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue