Bug 1288

Summary: GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target
Product: [JogAmp] Jogl Reporter: Giuseppe Barbieri <elect86>
Component: openglAssignee: Sven Gothel <sgothel>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 2.4.0   
Hardware: pc_x86_64   
OS: windows   
Type: FEATURE SCM Refs:
jogl ddf2640e5088c105352b032bea076c569685c99a
Workaround: ---

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
Comment 2 Sven Gothel 2019-03-26 23:55:19 CET
GLBufferStateTracker needs to support ARB_indirect_parameters, 
i.e. checkTargetName(target) and getQueryName(target) 
need to recognize GL4.GL_PARAMETER_BUFFER_ARB.