[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55446] trunk/blender/source/blender/ editors/space_node/drawnode.c: Small fix: make node backdrop draw with nearest-pixel filter, so it zooms in
Ton Roosendaal
ton at blender.org
Wed Mar 20 17:30:48 CET 2013
Revision: 55446
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55446
Author: ton
Date: 2013-03-20 16:30:48 +0000 (Wed, 20 Mar 2013)
Log Message:
-----------
Small fix: make node backdrop draw with nearest-pixel filter, so it zooms in
showing pixels. Issue was it also blurred image at zoom level 1... maybe subpixel
issue. Anyway - for inspecting exact composite results, zooming in showing pixels
is nicer anyway.
Modified Paths:
--------------
trunk/blender/source/blender/editors/space_node/drawnode.c
Modified: trunk/blender/source/blender/editors/space_node/drawnode.c
===================================================================
--- trunk/blender/source/blender/editors/space_node/drawnode.c 2013-03-20 16:03:34 UTC (rev 55445)
+++ trunk/blender/source/blender/editors/space_node/drawnode.c 2013-03-20 16:30:48 UTC (rev 55446)
@@ -2964,7 +2964,7 @@
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glPixelZoom(snode->zoom, snode->zoom);
- glaDrawPixelsAuto(x, y, ibuf->x, ibuf->y, GL_UNSIGNED_BYTE, GL_LINEAR, display_buffer);
+ glaDrawPixelsAuto(x, y, ibuf->x, ibuf->y, GL_UNSIGNED_BYTE, GL_NEAREST, display_buffer);
glPixelZoom(1.0f, 1.0f);
glDisable(GL_BLEND);
@@ -2972,7 +2972,7 @@
else {
glPixelZoom(snode->zoom, snode->zoom);
- glaDrawPixelsAuto(x, y, ibuf->x, ibuf->y, GL_UNSIGNED_BYTE, GL_LINEAR, display_buffer);
+ glaDrawPixelsAuto(x, y, ibuf->x, ibuf->y, GL_UNSIGNED_BYTE, GL_NEAREST, display_buffer);
glPixelZoom(1.0f, 1.0f);
}
More information about the Bf-blender-cvs
mailing list