Remove legacy code used for sequencer preview image
authorDalai Felinto <dfelinto@gmail.com>
Thu, 1 Mar 2018 21:22:29 +0000 (18:22 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 1 Mar 2018 21:22:31 +0000 (18:22 -0300)
This (now removed code) calls gl_Vertex deprecated draws. It was doing
background drawing (color gradient, flat background) which is not used
by any engine.

source/blender/editors/space_view3d/view3d_draw.c

index 793b7289146f6927b95142f113ee96a64912ea40..02d45be5aa4cceeb3e0a720a7eb744473f7dc2a9 100644 (file)
@@ -2022,15 +2022,6 @@ void ED_view3d_draw_offscreen(
        gpuPushMatrix();
        gpuLoadIdentity();
 
-       /* clear opengl buffers */
-       if (do_sky) {
-               view3d_main_region_clear(scene, v3d, ar);
-       }
-       else {
-               glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
-               glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
-       }
-
        if ((viewname != NULL && viewname[0] != '\0') && (viewmat == NULL) && rv3d->persp == RV3D_CAMOB && v3d->camera)
                view3d_stereo3d_setup_offscreen(eval_ctx, scene, v3d, ar, winmat, viewname);
        else