Fix invalid NULL check in GPU_viewport_unbind_from_offscreen
Mistake from 1d49293b80
.
This commit is contained in:
parent
f634010c6e
commit
2d3a62fe16
|
@ -505,7 +505,9 @@ void GPU_viewport_unbind_from_offscreen(GPUViewport *viewport,
|
|||
bool display_colorspace,
|
||||
bool do_overlay_merge)
|
||||
{
|
||||
if (viewport->color_render_tx == NULL) {
|
||||
const int view = 0;
|
||||
|
||||
if (viewport->color_render_tx[view] == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -527,7 +529,7 @@ void GPU_viewport_unbind_from_offscreen(GPUViewport *viewport,
|
|||
};
|
||||
|
||||
gpu_viewport_draw_colormanaged(
|
||||
viewport, 0, &pos_rect, &uv_rect, display_colorspace, do_overlay_merge);
|
||||
viewport, view, &pos_rect, &uv_rect, display_colorspace, do_overlay_merge);
|
||||
|
||||
/* This one is from the offscreen. Don't free it with the viewport. */
|
||||
viewport->depth_tx = NULL;
|
||||
|
|
Loading…
Reference in New Issue