Login  Register

Re: glMultiDrawArraysIndirect usage

Posted by luca.moretto on Jan 15, 2014; 11:48am
URL: https://forum.jogamp.org/glMultiDrawArraysIndirect-usage-tp4031230p4031232.html

Hi, and thanks for your answer.

You're right, I made a mistake. null is actually accepted and treated as a 0 offset in the bound buffer.

However I would like to understand if and how it is possible to specify a different offset. Whatever value I pass in the "indirect" buffer argument it gives me GL_INVALID_OPERATION.

Anyway, if I don't have any buffer bound to GL_DRAW_INDIRECT_BUFFER and I pass to the function a buffer argument which directly contains the drawing command structures, then it works fine. The problem appears only when a buffer is bound to GL_DRAW_INDIRECT_BUFFER, in which case the "indirect" argument should be interpreted as an offset in the bound buffer.