[BUG] - Interface Block initializers

(coudnt find a better place to submit a bug report so…)

I stumbled upon this bug, I tried to initialize this uniform block:

#version 330
layout (std140) uniform Material {
	vec4 diffuse = vec4(0.2, 0.2, 0.2 ,1.0);
	vec4 ambient;
	vec4 specular;
	vec4 emissive;
	float shininess = 0.5f;
	int texCount = 0;
};

And the program just crashed when calling glLinkProgram.
I’m using Opengl 3.3 and GLSL 330.
According to GLSLangSpec 3.30.6, this is in fact not allowed, but it should produce an error, not crash the application.

I tested it with Nvidia driver versions 295.51 and 295.73 32bit and 64 bit.

You can also try posting the bug on NVidias forums: http://forums.developer.nvidia.com/devforum/discussions

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.