meta/blit: Track source texture using gl_texture_object instead of GL API object handle

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
Ian Romanick
2016-01-13 01:22:43 -08:00
parent 29a948e06d
commit 7609d54e4a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -312,6 +312,7 @@ struct fb_tex_blit_state
GLint baseLevelSave, maxLevelSave;
struct gl_sampler_object *samp_obj;
struct gl_sampler_object *samp_obj_save;
struct gl_texture_object *tex_obj;
GLuint stencilSamplingSave;
GLuint tempTex;
};
+1
View File
@@ -694,6 +694,7 @@ blitframebuffer_texture(struct gl_context *ctx,
}
target = texObj->Target;
fb_tex_blit.tex_obj = texObj;
fb_tex_blit.baseLevelSave = texObj->BaseLevel;
fb_tex_blit.maxLevelSave = texObj->MaxLevel;
fb_tex_blit.stencilSamplingSave = texObj->StencilSampling;