Bug 1288 - GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target
Summary: GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target
Status: UNCONFIRMED
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2.4.0
Hardware: pc_x86_64 windows
: P4 blocker
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2016-02-03 15:32 CET by Giuseppe Barbieri
Modified: 2016-03-11 19:11 CET (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Barbieri 2016-02-03 15:32:21 CET
This binding:

gl4.glBindBuffer(GL_PARAMETER_BUFFER_ARB, bufferName[Buffer.PARAMETER]);

Fires the following exception:

Caused by: com.jogamp.opengl.GLException: GL_INVALID_ENUM​: Invalid binding target 0x80EE
	at jogamp.opengl.GLBufferStateTracker.checkTargetName(GLBufferStateTracker.java:174)
	at jogamp.opengl.GLBufferStateTracker.setBoundBufferObject(GLBufferStateTracker.java:189)
	at jogamp.opengl.gl4.GL4bcImpl.glBindBuffer(GL4bcImpl.java:10213)
	at tests.gl_500.Gl_500_multi_draw_indirect_count_arb.initBuffer(Gl_500_multi_draw_indirect_count_arb.java:300)



GL_PARAMETER_BUFFER_ARB is a legal buffer binding
Comment 1 Giuseppe Barbieri 2016-03-11 19:11:33 CET
Actually the fix is pretty easy :p

https://github.com/sgothel/jogl/pull/98