Remove unused ibuf argument from draw_gpencil_2dimage
[blender.git] / source / blender / editors / space_clip / clip_draw.c
index 62ea0b00ff8da1db491626e24eabdaecfd2202fc..cca72e7469a0f059891592d85e4c3fd2a233a628 100644 (file)
@@ -1457,7 +1457,6 @@ void clip_draw_grease_pencil(bContext *C, int onlyv2d)
 {
        SpaceClip *sc = CTX_wm_space_clip(C);
        MovieClip *clip = ED_space_clip(sc);
-       ImBuf *ibuf;
 
        if (!clip)
                return;
@@ -1466,16 +1465,11 @@ void clip_draw_grease_pencil(bContext *C, int onlyv2d)
                /* if manual calibration is used then grease pencil data is already
                 * drawed in draw_distortion */
                if ((sc->flag & SC_MANUAL_CALIBRATION) == 0 || sc->mode != SC_MODE_DISTORTION) {
-                       ibuf = ED_space_clip_get_buffer(sc);
-
-                       if (ibuf) {
-                               glPushMatrix();
-                               glMultMatrixf(sc->unistabmat);
-                               draw_gpencil_2dimage(C, ibuf);
+                       glPushMatrix();
+                       glMultMatrixf(sc->unistabmat);
+                       draw_gpencil_2dimage(C);
 
-                               IMB_freeImBuf(ibuf);
-                               glPopMatrix();
-                       }
+                       glPopMatrix();
                }
        }
        else {