diff options
author | Marek Olšák <[email protected]> | 2013-07-30 22:29:18 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-30 23:31:24 +0200 |
commit | 83dbe61ea4308638f1c041d2f550f0f719e36967 (patch) | |
tree | 80708f40e9455509a9c24cd6f01e33ed14372ec7 /src/mesa/state_tracker | |
parent | f27f3a4b15449e9ba3c0ee4e01b9db753e48e55f (diff) |
st/dri: implement the driconf option force_s3tc_enable properly
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index b201012f9d2..6bc1284f826 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -289,14 +289,6 @@ void st_init_limits(struct st_context *st) } -static GLboolean st_get_s3tc_override(void) -{ - const char *override = _mesa_getenv("force_s3tc_enable"); - if (override && !strcmp(override, "true")) - return GL_TRUE; - return GL_FALSE; -} - /** * Given a member \c x of struct gl_extensions, return offset of * \c x in bytes. @@ -628,7 +620,7 @@ void st_init_extensions(struct st_context *st) /* Below are the cases which cannot be moved into tables easily. */ - if (!ctx->Mesa_DXTn && !st_get_s3tc_override()) { + if (!ctx->Mesa_DXTn && !st->options.force_s3tc_enable) { ctx->Extensions.EXT_texture_compression_s3tc = GL_FALSE; ctx->Extensions.ANGLE_texture_compression_dxt = GL_FALSE; } |