[Bf-blender-cvs] [06e0ea0c16a] temp-vr-draw-thread: Remove unnecessary calls

Julian Eisel noreply at git.blender.org
Sat Aug 3 02:14:31 CEST 2019


Commit: 06e0ea0c16a257d7f1a37cf47c82b42af0300722
Author: Julian Eisel
Date:   Sat Aug 3 01:51:08 2019 +0200
Branches: temp-vr-draw-thread
https://developer.blender.org/rB06e0ea0c16a257d7f1a37cf47c82b42af0300722

Remove unnecessary calls

===================================================================

M	source/blender/windowmanager/intern/wm_xr.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_xr.c b/source/blender/windowmanager/intern/wm_xr.c
index 82337d632bc..e20bc39ba1f 100644
--- a/source/blender/windowmanager/intern/wm_xr.c
+++ b/source/blender/windowmanager/intern/wm_xr.c
@@ -351,15 +351,10 @@ static GHOST_ContextHandle wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view
                                   offscreen,
                                   viewport);
 
-  GPU_framebuffer_restore();
-
   GPUTexture *texture = GPU_offscreen_color_texture(offscreen);
 
   wm_draw_offscreen_texture_parameters(offscreen);
-  GPU_depth_test(false);
 
-  GPU_matrix_push();
-  GPU_matrix_push_projection();
   wmViewport(&rect);
 
   if (g_xr_surface->secondary_ghost_ctx &&
@@ -372,9 +367,6 @@ static GHOST_ContextHandle wm_xr_draw_view(const GHOST_XrDrawViewInfo *draw_view
     GPU_viewport_draw_to_screen(viewport, &rect);
   }
 
-  GPU_matrix_pop_projection();
-  GPU_matrix_pop();
-
   GPU_viewport_unbind(viewport);
 
   DRW_render_context_draw_end();



More information about the Bf-blender-cvs mailing list