This suggests that the buffer storage for the draw operation did not contain enough bytes - can you double-check the size of the GL array buffer that it's enough to store the 2048 vertices, and that you don't have enableVertexAttribArray called for any other attribute indices that are not in use by that draw call?
2014-02-13 18:35 GMT+02:00 wolfviking0 <[email protected]>: > Hi, > > One of my sample is giving me an warning about access out of bound array. > > I build it with GL_DEBUG=1 but I have some trouble for read the console > info. Someone can explain me how read this info ?? > > Thanks > > [Error] [gl_f:bindBuffer:0x8892 (34962),] > [Error] [gl_f:clear:0x4100 (16640)] > [Error] [gl_f:bindBuffer:0x8892 (34962),<[object WebGLBuffer]|12>] > [Error] [gl_f:bindBuffer:0x8892 (34962),<[object WebGLBuffer]|13>] > [Error] [gl_f:disableVertexAttribArray:0] > [Error] [gl_f:disableVertexAttribArray:0x2 (2)] > [Error] [gl_f:useProgram:] > [Error] [gl_f:useProgram:<[object WebGLProgram]|27>] > [Error] [gl_f:uniformMatrix4fv:<[object > WebGLUniformLocation]|29>,0,<1,0,0,0,0,1,0,0,0,0,1,0,0,0,-3,1|77>] > [Error] [gl_f:vertexAttribPointer:0,0x4 (4),0x1406 (5126),0,0x20 (32),0] > [Error] [gl_f:enableVertexAttribArray:0] > [Error] [gl_f:vertexAttribPointer:0x2 (2),0x4 (4),0x1406 (5126),0x1 > (1),0x20 (32),0x10 (16)] > [Error] [gl_f:enableVertexAttribArray:0x2 (2)] > [Error] [gl_f:drawArrays:0,0,0x800 (2048)] > [Warning] WebGL: INVALID_OPERATION: drawArrays: attempt to access out of > bounds arrays ([native code], line 0) > > -- > 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.
