Re: [Mesa-dev] Anonymous structure in uniform question

2013-11-25 Thread f.josef
Hello Grigori, indeed the patch cures the error, but when I was testing the newly compiled Mesa with XPlane10, it turns out there is something wrong - there are no shadows (without shadows I can't really tell if the patch didn't visibly break anything). I'm going to try and find out where

Re: [Mesa-dev] Anonymous structure in uniform question

2013-11-24 Thread Grigori Goronzy
On 21.11.2013 21:50, f.jo...@email.cz wrote: The problem is, that each anonymous structure gets its own unique type, without checking if such type already exists. It seems to me, that such code is somewhat in the gray area - the rest of OpenGL implementations doesn't seem to have a problem with

[Mesa-dev] Anonymous structure in uniform question

2013-11-21 Thread f.josef
Hello, just recently I encountered a problem when linking shaders, containing uniform consisting of anonymous structure. Here is the code of shaders, triggering the problem: //vertex shader uniform struct {vec3 a; vec3 b;} a; void main() {   gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;