summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-05-12 15:39:27 +0800
committerChia-I Wu <[email protected]>2010-05-12 15:46:28 +0800
commitd9f38e1a71f94b112b4ab288a7043dd2fc4a701d (patch)
treeec133e15cd5e29a9a423b2bac7fb2cc29ea9e500 /src
parent87cc2da16ef2c32813eee9c9c8af3c919f4739d9 (diff)
st/mesa: Do not use draw module in OpenGL ES build.
This removes references to symbols in draw module for OpenGL ES build. As OpenGL ES does not support feedback/selection mode, draw module is used in pathes that will never be reached. However, if the symbols are referenced, it will bloat the final shared libraries unnecessarily. This is serious when LLVM is enabled.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_program.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 772a2ee17c9..3c865028a7a 100644
--- a/src/mesa/state_tracker/st_program.c
+++ b/src/mesa/state_tracker/st_program.c
@@ -65,8 +65,10 @@ st_vp_release_varients( struct st_context *st,
if (vpv->driver_shader)
cso_delete_vertex_shader(st->cso_context, vpv->driver_shader);
+#if FEATURE_feedback || FEATURE_rastpos
if (vpv->draw_shader)
draw_delete_vertex_shader( st->draw, vpv->draw_shader );
+#endif
if (vpv->tgsi.tokens)
st_free_tokens(vpv->tgsi.tokens);