OpenGL embedded in gtk has colour badly displayed
Posted
by
Sardathrion
on Stack Overflow
See other posts from Stack Overflow
or by Sardathrion
Published on 2012-10-22T08:24:51Z
Indexed on
2012/10/23
11:01 UTC
Read the original article
Hit count: 212
Note that this is a re-write now that I have more clues as to where the problem could be...
I am creating a GTK GUI which contains two embedded OpenGL displays. Both use the same shader code (complied once for each). On my normal hardware, this works fine. On a virtual machine running on the same hardware, I get horrible colours -- see images.
I suspect that the shader code is at fault -- certainly dropping a simpler shader does make the problem moot. However, I do need both diffuse and spot lights in my shader thus making it non-trivial.
Anyone has seen this before?
© Stack Overflow or respective owner