Hello Guest

[FIXED] ARBClearBufferObject.glClearBufferSubData

  • 2 Replies
  • 2252 Views
*

Offline basil

  • **
  • 81
[FIXED] ARBClearBufferObject.glClearBufferSubData
« on: July 04, 2014, 13:11:27 »
... not sure if it is behaving as it should. lwjgl version 2.9.1 :

ARBClearBufferObject.glClearBufferSubData()

and

ARBClearBufferObject.glClearNamedBufferSubDataEXT()

both do not have a size argument but they should i think. the way the methods are implemented :

nglClearNamedBufferSubDataEXT(buffer, internalformat, offset, data.remaining(), format, type, MemoryUtil.getAddress(data), function_pointer);

does not match what http://www.opengl.org/registry/specs/ARB/clear_buffer_object.txt says :

<data> is a pointer to an array of between one and four components
containing the data to be used as the source of the constant fill value.


with data.remaining() it is impossible to clear a range of the buffer to one (or two for RG textures, three for RGB, four for RGBA etc) value(s). the non-ranged methods work fine btw.


*

Offline spasi

  • *****
  • 2132
    • WebHotelier
Re: ARBClearBufferObject.glClearBufferSubData
« Reply #1 on: July 04, 2014, 18:05:05 »
You are correct, this will be fixed in the next nightly build. Thanks!

*

Offline basil

  • **
  • 81
Re: ARBClearBufferObject.glClearBufferSubData
« Reply #2 on: July 04, 2014, 20:46:05 »
thank you!  ;D