diff --git a/cogl/cogl-context-private.h b/cogl/cogl-context-private.h index 522f5d4c9..6d92faf39 100644 --- a/cogl/cogl-context-private.h +++ b/cogl/cogl-context-private.h @@ -158,8 +158,6 @@ struct _CoglContext gboolean legacy_depth_test_enabled; - float point_size_cache; - CoglBuffer *current_buffer[COGL_BUFFER_BIND_TARGET_COUNT]; /* Framebuffers */ diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index fb27160b7..b3c404e2a 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -326,8 +326,6 @@ cogl_context_new (CoglDisplay *display, context->depth_range_near_cache = 0; context->depth_range_far_cache = 1; - context->point_size_cache = 1.0f; - context->legacy_depth_test_enabled = FALSE; context->pipeline_cache = cogl_pipeline_cache_new (); diff --git a/cogl/cogl-pipeline-vertend-fixed.c b/cogl/cogl-pipeline-vertend-fixed.c index 37592dd9f..2df593bfa 100644 --- a/cogl/cogl-pipeline-vertend-fixed.c +++ b/cogl/cogl-pipeline-vertend-fixed.c @@ -117,11 +117,7 @@ _cogl_pipeline_vertend_fixed_end (CoglPipeline *pipeline, CoglPipeline *authority = _cogl_pipeline_get_authority (pipeline, COGL_PIPELINE_STATE_POINT_SIZE); - if (ctx->point_size_cache != authority->big_state->point_size) - { - GE( ctx, glPointSize (authority->big_state->point_size) ); - ctx->point_size_cache = authority->big_state->point_size; - } + GE( ctx, glPointSize (authority->big_state->point_size) ); } return TRUE; diff --git a/cogl/cogl-pipeline-vertend-glsl.c b/cogl/cogl-pipeline-vertend-glsl.c index 7ad5fc701..6ecec90a8 100644 --- a/cogl/cogl-pipeline-vertend-glsl.c +++ b/cogl/cogl-pipeline-vertend-glsl.c @@ -503,11 +503,7 @@ _cogl_pipeline_vertend_glsl_end (CoglPipeline *pipeline, CoglPipeline *authority = _cogl_pipeline_get_authority (pipeline, COGL_PIPELINE_STATE_POINT_SIZE); - if (ctx->point_size_cache != authority->big_state->point_size) - { - GE( ctx, glPointSize (authority->big_state->point_size) ); - ctx->point_size_cache = authority->big_state->point_size; - } + GE( ctx, glPointSize (authority->big_state->point_size) ); } return TRUE;