mesa: pass target through to driver when choosing texture format
This only matters for TextureView where the texObj's target has not been set yet, in all other instances, texObj->target should be the same as the passed-in target parameter. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e7047f2917
commit
9d95d64be0
|
@ -3024,7 +3024,7 @@ _mesa_choose_texture_format(struct gl_context *ctx,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* choose format from scratch */
|
/* choose format from scratch */
|
||||||
f = ctx->Driver.ChooseTextureFormat(ctx, texObj->Target, internalFormat,
|
f = ctx->Driver.ChooseTextureFormat(ctx, target, internalFormat,
|
||||||
format, type);
|
format, type);
|
||||||
ASSERT(f != MESA_FORMAT_NONE);
|
ASSERT(f != MESA_FORMAT_NONE);
|
||||||
return f;
|
return f;
|
||||||
|
|
Loading…
Reference in New Issue