Fix own error w/ camera-dof in GL-render commit
This commit is contained in:
parent
dc14629b26
commit
093451e33d
|
@ -3305,13 +3305,10 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(
|
|||
const bool own_ofs = (ofs == NULL);
|
||||
|
||||
/* view state */
|
||||
GPUFXSettings fx_settings = {NULL};
|
||||
GPUFXSettings fx_settings = v3d->fx_settings;
|
||||
bool is_ortho = false;
|
||||
float winmat[4][4];
|
||||
|
||||
if (UNLIKELY(v3d == NULL))
|
||||
return NULL;
|
||||
|
||||
if (own_ofs) {
|
||||
/* state changes make normal drawing go weird otherwise */
|
||||
glPushAttrib(GL_LIGHTING_BIT);
|
||||
|
@ -3354,8 +3351,6 @@ ImBuf *ED_view3d_draw_offscreen_imbuf(
|
|||
rctf viewplane;
|
||||
float clipsta, clipend;
|
||||
|
||||
fx_settings = v3d->fx_settings;
|
||||
|
||||
is_ortho = ED_view3d_viewplane_get(v3d, rv3d, sizex, sizey, &viewplane, &clipsta, &clipend, NULL);
|
||||
if (is_ortho) {
|
||||
orthographic_m4(winmat, viewplane.xmin, viewplane.xmax, viewplane.ymin, viewplane.ymax, -clipend, clipend);
|
||||
|
|
Loading…
Reference in New Issue