The -s GL_FFP_ONLY=1 optimization is intended to work in the case where there are no shader programs being used at all in the code. If you're using glUseProgram in your own code, then that's not compatible with the -s GL_FFP_ONLY=1 flag.
Sorry about the INVALID_VALUE: bindAttribLocation: index out of range warnings - it is harmless, and the fix is waiting in a pull request merge here: https://github.com/kripken/emscripten/pull/1905/files#diff-78a51faf7f8c4f62113aae3d5d4ae8eeL3646. 2014/1/22 wolfviking0 <[email protected]> > Hi, > > I just update the last incoming branch, and I have some trouble with my > OpenGL sample. > > First many of them was build using -s LEGACY_GL_EMULATION=1 & -s > GL_FFP_ONLY=1, the sample are just grabbing array of pixel from OpenCL > kernel and I bind it inside the texture. It's a really simple, it's like > your sample tests/s3tc.c (You are using a file ddd, but really similar) > > Apparently I need to remove the -s GL_FFP_ONLY and it's seems to work > again. I am not sure why ? > > The second is, I try to remove all the warning (the maximum I can), I have > many WebGL: INVALID_VALUE: bindAttribLocation: index out of range. > What does that mean too ?. BTW s3tc.c return the same warning. > > Best > > Tony > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
