This issue is caused by exceeding temporary GL emulation buffer sizes. The example is requesting 262144 * 16bytes == 4194304b (4MB) of vertex data, but there is a fixed-size allocated buffer for emulation purposes that is by default only 2097152 bytes (2MB). To work around this, try compiling with the link flag
-s MAX_TEMP_BUFFER_SIZE 8388608 or similar. See https://github.com/kripken/emscripten/blob/8478d6aee54d6c52de16d8c58309534afbf5bf9e/src/settings.js#L222 2014/1/4 wolfviking0 <[email protected]> > Hi Alon, > > I reduce the sinewave sample for remove the OpenCL part. You can download > it here : https://www.dropbox.com/s/tii06jgx5mtgj41/sinewave.zip > > Of course theorically the rendering show a 3D sinus wave with OpenCL, now > I am just priting a random point inside a cube. I add a png with the result > of the sample without OpenCL natively (on OSX, but must be work on Linux > too) > > I add two version of html file generated with Emscripten, with and without > GL_DEBUG enabled. > > Thanks > > 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.
