mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 18:00:10 +01:00
intel: Use _mesa_get_current_tex_object() to clean up TFP path.
This commit is contained in:
parent
8f30ceaaef
commit
ee7dfbbd6c
1 changed files with 4 additions and 4 deletions
|
|
@ -115,7 +115,8 @@ guess_and_alloc_mipmap_tree(struct intel_context *intel,
|
|||
*/
|
||||
if ((intelObj->base.MinFilter == GL_NEAREST ||
|
||||
intelObj->base.MinFilter == GL_LINEAR) &&
|
||||
intelImage->level == firstLevel) {
|
||||
intelImage->level == firstLevel &&
|
||||
(intel->gen < 4 || firstLevel == 0)) {
|
||||
lastLevel = firstLevel;
|
||||
}
|
||||
else {
|
||||
|
|
@ -733,17 +734,16 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
|
|||
{
|
||||
struct intel_framebuffer *intel_fb = dPriv->driverPrivate;
|
||||
struct intel_context *intel = pDRICtx->driverPrivate;
|
||||
GLcontext *ctx = &intel->ctx;
|
||||
struct intel_texture_object *intelObj;
|
||||
struct intel_texture_image *intelImage;
|
||||
struct intel_mipmap_tree *mt;
|
||||
struct intel_renderbuffer *rb;
|
||||
struct gl_texture_unit *texUnit;
|
||||
struct gl_texture_object *texObj;
|
||||
struct gl_texture_image *texImage;
|
||||
int level = 0, internalFormat;
|
||||
|
||||
texUnit = &intel->ctx.Texture.Unit[intel->ctx.Texture.CurrentUnit];
|
||||
texObj = _mesa_select_tex_object(&intel->ctx, texUnit, target);
|
||||
texObj = _mesa_get_current_tex_object(ctx, target);
|
||||
intelObj = intel_texture_object(texObj);
|
||||
|
||||
if (!intelObj)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue