[Bf-blender-cvs] [a0ef4821240] blender2.8: Image Draw: remove unused code since 2009

Dalai Felinto noreply at git.blender.org
Tue Apr 4 16:47:17 CEST 2017


Commit: a0ef4821240750b78f7aeb89874ff1df1031f42f
Author: Dalai Felinto
Date:   Tue Apr 4 14:40:28 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBa0ef4821240750b78f7aeb89874ff1df1031f42f

Image Draw: remove unused code since 2009

(removing false positive deprecated OpenGL calls)

===================================================================

M	source/blender/editors/space_image/image_draw.c

===================================================================

diff --git a/source/blender/editors/space_image/image_draw.c b/source/blender/editors/space_image/image_draw.c
index e8b32789cbf..8d55c38f9e4 100644
--- a/source/blender/editors/space_image/image_draw.c
+++ b/source/blender/editors/space_image/image_draw.c
@@ -836,23 +836,6 @@ void draw_image_main(const bContext *C, ARegion *ar)
 	if (show_paint)
 		draw_image_paint_helpers(C, ar, scene, zoomx, zoomy);
 
-	/* XXX integrate this code */
-#if 0
-	if (ibuf) {
-		float xoffs = 0.0f, yoffs = 0.0f;
-		
-		if (image_preview_active(sa, &xim, &yim)) {
-			xoffs = scene->r.disprect.xmin;
-			yoffs = scene->r.disprect.ymin;
-			glColor3ub(0, 0, 0);
-			calc_image_view(sima, 'f');
-			myortho2(G.v2d->cur.xmin, G.v2d->cur.xmax, G.v2d->cur.ymin, G.v2d->cur.ymax);
-			glRectf(0.0f, 0.0f, 1.0f, 1.0f);
-			gpuLoadIdentity();
-		}
-	}
-#endif
-
 	if (show_viewer) {
 		BLI_unlock_thread(LOCK_DRAW_IMAGE);
 	}




More information about the Bf-blender-cvs mailing list