aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_fbo.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-17 14:50:48 -0600
committerBrian Paul <[email protected]>2011-09-17 14:57:40 -0600
commitfa2c886863492cc3eeee6d2059ae24edc1cb2bff (patch)
tree1853bc1556d33687cb5a375bb30dbf7c719bd269 /src/mesa/drivers/dri/intel/intel_fbo.c
parent1da896803cdd09293c7bb0048a2116e237a51766 (diff)
intel: make intel_texture_image a subclass of swrast_texture_image
We need to subclass swrast_texture_image because if we use swrast for fallback rendering, we'll need to have swrast_texture_image objects.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_fbo.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_fbo.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 6c55fdc61c0..418e426e42b 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -611,8 +611,8 @@ intel_renderbuffer_set_draw_offset(struct intel_renderbuffer *irb,
/* compute offset of the particular 2D image within the texture region */
intel_miptree_get_image_offset(intel_image->mt,
- intel_image->base.Level,
- intel_image->base.Face,
+ intel_image->base.Base.Level,
+ intel_image->base.Base.Face,
zoffset,
&dst_x, &dst_y);
@@ -738,18 +738,18 @@ intel_render_texture(struct gl_context * ctx,
struct intel_mipmap_tree *new_mt;
new_mt = intel_miptree_create(intel, image->TexObject->Target,
- intel_image->base.TexFormat,
- intel_image->base.Level,
- intel_image->base.Level,
- intel_image->base.Width,
- intel_image->base.Height,
- intel_image->base.Depth,
+ intel_image->base.Base.TexFormat,
+ intel_image->base.Base.Level,
+ intel_image->base.Base.Level,
+ intel_image->base.Base.Width,
+ intel_image->base.Base.Height,
+ intel_image->base.Base.Depth,
GL_TRUE);
intel_miptree_image_copy(intel,
new_mt,
- intel_image->base.Face,
- intel_image->base.Level,
+ intel_image->base.Base.Face,
+ intel_image->base.Base.Level,
old_mt);
intel_miptree_release(intel, &intel_image->mt);