Bug: jit.gl.pix and log10

Chris Vik's icon

I've found a bug when I put [log10] in my jit.gl.pix code. The object breaks, gives me a "error C1008: undefined variable "v"" message and the GLSL shader fails to compile.

Reading the Max 7 documentation, this function should be available - and it works correctly in both jit.gen and jit.pix."The following Gen operators are common to all of Max's Gen family of objects. They can be used as operators in the gen~ , jit.gen , jit.pix , and jit.gl.pix objects."
- "log10 : The logarithm base 10 of the input"

*edit.. Forgot specs: Windows 10, Max 32-bit 7.0.6

Rob Ramirez's icon

log10 is not supported in jit.gl.pix. You can use log(x)/log(10) for equivalent functionality.

Chris Vik's icon

Thanks Rob. Indeed it doesn't seem to be supported - however the object exists (doesn't go red when created) in jit.gl.pix, and there is nothing in the documentation to say that it shouldn't work as it does in jit.gen and jit.pix.

I'll use the work-around.