diff options
author | Brian Paul <brianp@vmware.com> | 2009-01-26 14:01:32 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-01-26 14:01:32 -0700 |
commit | 723648f2ee2a8e529063c9da84e9dff9c8c6be99 (patch) | |
tree | bd43368104e77f9adb1192165c0e82466a82911a /src/mesa/drivers/dri/intel/intel_pixel.c | |
parent | 36daee1c7bec44b9d3641f056c84b3b2f39fabd9 (diff) | |
download | external_mesa3d-723648f2ee2a8e529063c9da84e9dff9c8c6be99.zip external_mesa3d-723648f2ee2a8e529063c9da84e9dff9c8c6be99.tar.gz external_mesa3d-723648f2ee2a8e529063c9da84e9dff9c8c6be99.tar.bz2 |
intel: save/restore GL matrix mode in intel_meta_set_passthrough_transform(), intel_meta_restore_transform()
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_pixel.c')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_pixel.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_pixel.c b/src/mesa/drivers/dri/intel/intel_pixel.c index cf2f32d..5e32288 100644 --- a/src/mesa/drivers/dri/intel/intel_pixel.c +++ b/src/mesa/drivers/dri/intel/intel_pixel.c @@ -181,6 +181,7 @@ intel_meta_set_passthrough_transform(struct intel_context *intel) intel->meta.saved_vp_y = ctx->Viewport.Y; intel->meta.saved_vp_width = ctx->Viewport.Width; intel->meta.saved_vp_height = ctx->Viewport.Height; + intel->meta.saved_matrix_mode = ctx->Transform.MatrixMode; _mesa_Viewport(0, 0, ctx->DrawBuffer->Width, ctx->DrawBuffer->Height); @@ -202,6 +203,8 @@ intel_meta_restore_transform(struct intel_context *intel) _mesa_MatrixMode(GL_MODELVIEW); _mesa_PopMatrix(); + _mesa_MatrixMode(intel->meta.saved_matrix_mode); + _mesa_Viewport(intel->meta.saved_vp_x, intel->meta.saved_vp_y, intel->meta.saved_vp_width, intel->meta.saved_vp_height); } |