<div dir="ltr">On 8 January 2014 12:21, Emil Velikov <span dir="ltr"><<a href="mailto:emil.l.velikov@gmail.com" target="_blank">emil.l.velikov@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 08/01/14 19:20, Paul Berry wrote:<br>
> diff --git a/src/mesa/program/program.h b/src/mesa/program/program.h<br>
> index 4015b4c..648233c 100644<br>
> --- a/src/mesa/program/program.h<br>
> +++ b/src/mesa/program/program.h<br>
> @@ -207,6 +207,24 @@ _mesa_program_enum_to_shader_stage(GLenum v)<br>
> }<br>
> }<br>
><br>
> +<br>
> +static inline GLenum<br>
> +_mesa_shader_stage_to_program(gl_shader_stage stage)<br>
> +{<br>
> + switch (stage) {<br>
> + case MESA_SHADER_VERTEX:<br>
> + return GL_VERTEX_PROGRAM_ARB;<br>
> + case MESA_SHADER_FRAGMENT:<br>
> + return GL_FRAGMENT_PROGRAM_ARB;<br>
> + case MESA_SHADER_GEOMETRY:<br>
> + return GL_GEOMETRY_PROGRAM_NV;<br>
> + }<br>
> +<br>
> + ASSERT(0);<br>
</div></div>Hi Paul<br>
<br>
Can you use a normal assert that prints a somewhat informative message -<br>
similar to what you did in shader_stage_to_ptarget()?<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">Emil<br></font></span></blockquote><div><br></div><div>Sure, no problem.<br></div></div></div></div>