2.5
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user