Bug 827 - ShaderProgam helper class reports errors incorrectly
Summary: ShaderProgam helper class reports errors incorrectly
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2013-09-06 23:18 CEST by John Gibson
Modified: 2013-10-19 03:11 CEST (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Gibson 2013-09-06 23:18:57 CEST
Version: 2.0.2

The helper class com.jogamp.opengl.util.glsl.ShaderProgram sometimes ignores the specified PrintStream and dumps errors to System.err.  The methods in particular that exhibit this behavior are: ShaderProgram.replaceShader() and ShaderProgram.link() when they call ShaderUtil.isProgramLinkStatusValid().
Comment 1 Sven Gothel 2013-09-29 21:17:59 CEST
Thank you John.

Can you provide a patch (git pull request or git patch)
which I can merge ?

Since you seem to have analyzed this issue thoroughly .. you may also fix it?
Comment 2 Sven Gothel 2013-10-19 03:11:22 CEST
thank you