Bug 446

Summary: incorrect returned compile status and empty logs when using shaders
Product: [JogAmp] Jogl Reporter: Julien Gouesse <gouessej>
Component: openglAssignee: Sven Gothel <sgothel>
Status: VERIFIED INVALID    
Severity: normal    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
Workaround: ---
Attachments: test case to reproduce this bug

Description Julien Gouesse 2010-12-16 02:02:39 CET
Created attachment 199 [details]
test case to reproduce this bug

Hi!

When I use any shader, the returned compile status is always false even though the shader is successfully compiled and executed. The logs are always empty even though there are real errors during compilation. 

I use Cent OS 5.3 with this graphics card:
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro FX 3450/4000 SDI/PCI/SSE2
OpenGL version string: 2.1.2 NVIDIA 185.18.14 

Please find enclosed a small test case. This is a regression as the same example was working reliably with JOGL 1.1.1a:
http://www.javagaming.org/index.php/topic,21930.msg180810.html#msg180810

HOW TO TEST:
DO: Launch this example
RESULT: COMPILE_STATUS is set to GL_FALSE but the demo works, the shaders are executed
EXPECTED: COMPILE_STATUS is set to GL_TRUE and the demo works
DO: Modify the shaders so that it should not work anymore
DO: Launch the example again
RESULT: COMPILE_STATUS is set to GL_FALSE, the demo does not work, the shaders are not executed but there are no log
EXPECTED: COMPILE_STATUS is set to GL_FALSE, the demo does not work, the shaders are not executed but some logs about compilation errors are displayed
Comment 1 Julien Gouesse 2010-12-16 04:53:54 CET
Actually I used glGetProgramiv instead of glGetShaderiv, it is not a bug. Sorry.