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:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user