Bug 446 - incorrect returned compile status and empty logs when using shaders
Summary: incorrect returned compile status and empty logs when using shaders
Status: VERIFIED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2010-12-16 02:02 CET by Julien Gouesse
Modified: 2010-12-16 04:53 CET (History)
0 users

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


Attachments
test case to reproduce this bug (3.50 KB, application/x-zip)
2010-12-16 02:02 CET, Julien Gouesse
Details

Note You need to log in before you can comment on or make changes to 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.