diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c index 3044ec099..216937186 100644 --- a/cogl/cogl-context.c +++ b/cogl/cogl-context.c @@ -208,8 +208,10 @@ cogl_create_context (void) _context->legacy_depth_test_enabled = FALSE; +#ifdef HAVE_COGL_GL _context->arbfp_cache = g_hash_table_new (_cogl_pipeline_arbfp_hash, _cogl_pipeline_arbfp_equal); +#endif for (i = 0; i < COGL_BUFFER_BIND_TARGET_COUNT; i++) _context->current_buffer[i] = NULL; @@ -360,7 +362,9 @@ _cogl_destroy_context (void) g_slist_free (_context->texture_types); g_slist_free (_context->buffer_types); +#ifdef HAVE_COGL_GL g_hash_table_unref (_context->arbfp_cache); +#endif g_free (_context); } diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h index 14d70e9fd..4b51d388e 100644 --- a/cogl/cogl-context.h +++ b/cogl/cogl-context.h @@ -91,7 +91,9 @@ typedef struct int legacy_state_set; +#ifdef HAVE_COGL_GL GHashTable *arbfp_cache; +#endif /* Textures */ CoglHandle default_gl_texture_2d_tex;