Commit cda52d2f authored by Edward Vigmond's avatar Edward Vigmond
Browse files

Was ignoring stride while drawing surfaces.

parent 3d25b401
......@@ -3,12 +3,12 @@ HOSTMACHINE := $(shell uname)
FLTK_INC := $(shell fltk-config --use-gl --cxxflags)
FLTK_LD_FLAGS := $(shell fltk-config --use-gl --ldflags)
COMMON_LIBS = -lpng -lpthread -lm -lz
COMMON_INC = -I. -O0 -g -DOBJ_CLASS
COMMON_LIBS = -lpng -lpthread -ltcmalloc_minimal -lpthread -lm -lz
COMMON_INC = -I. -O0 -g -DOBJ_CLASS -D_REENTRANT
ifeq ($(HOSTMACHINE),Linux)
LIBS = $(FLTK_LD_FLAGS) $(COMMON_LIBS)
CFLAGS = $(FLTK_INC) $(COMMON_INC)
CFLAGS = $(FLTK_INC) $(COMMON_INC) #-fopenmp
endif
ifeq ($(HOSTMACHINE),Darwin)
......
......@@ -102,7 +102,7 @@ void Surfaces::determine_vert_norms( Point& pt )
void Surfaces::draw( GLfloat *fill, Colourscale *cs, DATA_TYPE *dat,
int stride, dataOpac* dataopac, const GLfloat*ptnrml )
{
for ( int i=0; i<_ele.size(); i++ )
for ( int i=0; i<_ele.size(); i+=stride )
_ele[i]->draw( 0, 0, fill, cs, dat, stride, dataopac, ptnrml );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment