Made nodes compile for Makefile and mac.
It has a hack for intel cards in node previews... not sure if that is
still valid? commented it out.
This commit is contained in:
Ton Roosendaal
2008-12-24 11:17:45 +00:00
parent e60e7f3667
commit 9bb7babd2c
2 changed files with 9 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ CFLAGS += $(LEVEL_1_C_WARNINGS)
CPPFLAGS += -I$(NAN_GLEW)/include
CPPFLAGS += -I$(OPENGL_HEADERS)
CPPFLAGS += -I$(NAN_BMFONT)/include
# not very neat....
CPPFLAGS += -I../../windowmanager
@@ -45,6 +46,8 @@ CPPFLAGS += -I../../blenkernel
CPPFLAGS += -I../../blenlib
CPPFLAGS += -I../../makesdna
CPPFLAGS += -I../../imbuf
CPPFLAGS += -I../../nodes
CPPFLAGS += -I../../render/extern/include
CPPFLAGS += -I../../python
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include

View File

@@ -593,12 +593,12 @@ static void node_draw_preview(bNodePreview *preview, rctf *prv)
}
#ifdef __APPLE__
if(is_a_really_crappy_nvidia_card()) {
float zoomx= curarea->winx/(float)(G.v2d->cur.xmax-G.v2d->cur.xmin);
float zoomy= curarea->winy/(float)(G.v2d->cur.ymax-G.v2d->cur.ymin);
glPixelZoom(zoomx*xscale, zoomy*yscale);
}
else
// if(is_a_really_crappy_nvidia_card()) { XXX
// float zoomx= curarea->winx/(float)(G.v2d->cur.xmax-G.v2d->cur.xmin);
// float zoomy= curarea->winy/(float)(G.v2d->cur.ymax-G.v2d->cur.ymin);
// glPixelZoom(zoomx*xscale, zoomy*yscale);
// }
// else
#endif
glPixelZoom(xscale, yscale);