summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2011-08-25 14:18:01 +0100
committerRobert Bragg <robert@linux.intel.com>2011-09-05 17:54:46 +0100
commit4e1d08d59e65fd06a3fa10e2be147fc290e430af (patch)
tree1c167feb9cdb2b482f1ba8d0450212694ef6c218
parent11d221af1a9cc2f852a4182d3bcb9a82d481d23c (diff)
downloadcogl-4e1d08d59e65fd06a3fa10e2be147fc290e430af.tar.gz
pipeline: Remove unsused get_max_texture_image_units()
This function was not used in the opengl pipeline, probably because of the more precise get_max_activable_texture_units(). Remove it then. https://bugzilla.gnome.org/show_bug.cgi?id=657347 Reviewed-by: Robert Bragg <robert@linux.intel.com>
-rw-r--r--cogl/cogl-context.c1
-rw-r--r--cogl/cogl-pipeline-opengl.c20
-rw-r--r--cogl/cogl-pipeline-private.h5
3 files changed, 0 insertions, 26 deletions
diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index aa8bae85..71e912d2 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -269,7 +269,6 @@ cogl_context_new (CoglDisplay *display,
_cogl_bitmask_init (&context->arrays_to_change);
context->max_texture_units = -1;
- context->max_texture_image_units = -1;
context->max_activateable_texture_units = -1;
context->current_program = COGL_INVALID_HANDLE;
diff --git a/cogl/cogl-pipeline-opengl.c b/cogl/cogl-pipeline-opengl.c
index 874b82ec..28693e60 100644
--- a/cogl/cogl-pipeline-opengl.c
+++ b/cogl/cogl-pipeline-opengl.c
@@ -387,26 +387,6 @@ _cogl_use_vertex_program (GLuint gl_program, CoglPipelineProgramType type)
ctx->current_vertex_program_type = type;
}
-#if defined (COGL_PIPELINE_FRAGEND_GLSL) || \
- defined (COGL_PIPELINE_FRAGEND_ARBFP)
-int
-_cogl_get_max_texture_image_units (void)
-{
- _COGL_GET_CONTEXT (ctx, 0);
-
- /* This function is called quite often so we cache the value to
- avoid too many GL calls */
- if (G_UNLIKELY (ctx->max_texture_image_units == -1))
- {
- ctx->max_texture_image_units = 1;
- GE (ctx, glGetIntegerv (GL_MAX_TEXTURE_IMAGE_UNITS,
- &ctx->max_texture_image_units));
- }
-
- return ctx->max_texture_image_units;
-}
-#endif
-
#if defined(HAVE_COGL_GLES2) || defined(HAVE_COGL_GL)
static gboolean
diff --git a/cogl/cogl-pipeline-private.h b/cogl/cogl-pipeline-private.h
index 41f73ab8..6e8fc359 100644
--- a/cogl/cogl-pipeline-private.h
+++ b/cogl/cogl-pipeline-private.h
@@ -916,11 +916,6 @@ typedef struct _CoglPipelineFlushOptions
CoglHandle layer0_override_texture;
} CoglPipelineFlushOptions;
-
-int
-_cogl_get_max_texture_image_units (void);
-
-
void
_cogl_use_fragment_program (GLuint gl_program, CoglPipelineProgramType type);