Fix #124377: EEVEE Incorrect HDRI Previews location
When render border is active the default framebuffer view is changed and results to rendering the HDRI previews inside the render border and not in the bottom right corner of the 3d viewport. This PR fixes it by resetting the viewport when drawing the HDRI previews. Also tried to pass the DRW default view during submission, but that didn't fixed the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/124402
This commit is contained in:
@@ -283,6 +283,8 @@ void LookdevModule::display()
|
||||
BLI_assert(inst_.is_viewport());
|
||||
|
||||
DefaultFramebufferList *dfbl = DRW_viewport_framebuffer_list_get();
|
||||
/* The viewport of the framebuffer can be modified when border rendering is enabled. */
|
||||
GPU_framebuffer_viewport_reset(dfbl->default_fb);
|
||||
GPU_framebuffer_bind(dfbl->default_fb);
|
||||
inst_.manager->submit(display_ps_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user