diff options
Diffstat (limited to 'src/displaywindow.c')
-rw-r--r-- | src/displaywindow.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/displaywindow.c b/src/displaywindow.c index 867b2cb..b38007d 100644 --- a/src/displaywindow.c +++ b/src/displaywindow.c @@ -358,7 +358,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { if ( dw->gl_use_buffers ) { glGenBuffersARB(1, &dw->gl_ref_vertex_buffer); } - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; i = 0; do { if ( reflection->type == REFLECTION_NORMAL ) i++; @@ -366,7 +366,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { } while ( reflection != NULL ); dw->gl_ref_num_vertices = i; i = 0; - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; vertices = malloc(3*dw->gl_ref_num_vertices*sizeof(GLfloat)); do { if ( reflection->type == REFLECTION_NORMAL ) { @@ -390,7 +390,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { glGenBuffersARB(1, &dw->gl_marker_vertex_buffer); glGenBuffersARB(1, &dw->gl_marker_normal_buffer); } - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; i = 0; do { if ( reflection->type == REFLECTION_MARKER ) i++; @@ -398,7 +398,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { } while ( reflection != NULL ); dw->gl_marker_num_vertices = i*VERTICES_IN_A_BLOB; i = 0; - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; vertices = malloc(3*dw->gl_marker_num_vertices*sizeof(GLfloat)); normals = malloc(3*dw->gl_marker_num_vertices*sizeof(GLfloat)); do { @@ -424,7 +424,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { glGenBuffersARB(1, &dw->gl_gen_vertex_buffer); glGenBuffersARB(1, &dw->gl_gen_normal_buffer); } - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; i = 0; do { if ( reflection->type == REFLECTION_GENERATED ) i++; @@ -432,7 +432,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { } while ( reflection != NULL ); dw->gl_gen_num_vertices = i*VERTICES_IN_A_BLOB; i = 0; - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; vertices = malloc(3*dw->gl_gen_num_vertices*sizeof(GLfloat)); normals = malloc(3*dw->gl_gen_num_vertices*sizeof(GLfloat)); do { @@ -517,7 +517,7 @@ static void displaywindow_gl_create_list(DisplayWindow *dw) { glPopMatrix(); /* Plot the other reflections */ - reflection = ctx->reflectionctx->reflections; + reflection = ctx->reflectionlist->reflections; quadric = gluNewQuadric(); do { |