diff options
author | Brian Paul <[email protected]> | 2010-11-23 10:28:43 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-11-23 15:52:43 -0700 |
commit | c628fd743ee3c3305e9beac7f0e6efacf6982115 (patch) | |
tree | 873ae98daf0b76c1778e0c10da0226ca91bff089 /src/mesa/state_tracker/st_context.c | |
parent | 512f840702d58b48607a9dca06dd939256c7afed (diff) |
mesa: replace #defines with new gl_shader_type enum
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r-- | src/mesa/state_tracker/st_context.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c index d0dcdd4e29b..d6628b1bff0 100644 --- a/src/mesa/state_tracker/st_context.c +++ b/src/mesa/state_tracker/st_context.c @@ -170,6 +170,11 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe, struct gl_context *shareCtx = share ? share->ctx : NULL; struct dd_function_table funcs; + /* Sanity checks */ + assert(MESA_SHADER_VERTEX == PIPE_SHADER_VERTEX); + assert(MESA_SHADER_FRAGMENT == PIPE_SHADER_FRAGMENT); + assert(MESA_SHADER_GEOMETRY == PIPE_SHADER_GEOMETRY); + memset(&funcs, 0, sizeof(funcs)); st_init_driver_functions(&funcs); |