Bug 1288 - GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target
Summary: GL_PARAMETER_BUFFER_ARB is perceived as invalid binding target
Status: RESOLVED FIXED
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: 2019-03-26 23:55 CET (History)
0 users

See Also:
Type: FEATURE
SCM Refs:
jogl ddf2640e5088c105352b032bea076c569685c99a
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
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.