Mesa (8.0): intel: Drop the version override code now that we don' t have any left.

Ian Romanick idr at kemper.freedesktop.org
Thu Jan 19 12:35:08 PST 2012


Module: Mesa
Branch: 8.0
Commit: 6382f98b9a37616a0802cb8ef450ce16e5ef1921
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6382f98b9a37616a0802cb8ef450ce16e5ef1921

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Jan 12 14:53:10 2012 -0800

intel: Drop the version override code now that we don't have any left.

Fixes a compiler warning.

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
(cherry picked from commit a14582d7e2ace05a3583cecff39f2bb4f41f7b79)

---

 src/mesa/drivers/dri/intel/intel_extensions.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
index 7aa040c..0ce452f 100644
--- a/src/mesa/drivers/dri/intel/intel_extensions.c
+++ b/src/mesa/drivers/dri/intel/intel_extensions.c
@@ -41,14 +41,6 @@ void
 intelInitExtensions(struct gl_context *ctx)
 {
    struct intel_context *intel = intel_context(ctx);
-   char *override = getenv("MESA_GL_VERSION_OVERRIDE");
-   int override_major, override_minor;
-   int override_version = 0;
-
-   if (override &&
-       sscanf(override, "%u.%u", &override_major, &override_minor) == 2) {
-      override_version = override_major * 10 + override_minor;
-   }
 
    ctx->Extensions.ARB_draw_elements_base_vertex = true;
    ctx->Extensions.ARB_explicit_attrib_location = true;



More information about the mesa-commit mailing list