Answer the question
In order to leave comments, you need to log in
OpenGL - object color is different in Win & Lin
There is a scene where two objects with textures are drawn.
Before drawing the second object, I give the command glColor4f(r, g, b, a);
For development I use two different machines - on one Ubuntu, on the second Windows7.
At the same time, on Windows, the color change command affects only the second object (as intended), on Linux, it recolors both objects.
The code is the same, written in Java, and there and there Java 6 build 1.6.0, video on Nvidia Windows, on Intel Linux.
By the way, I do glEnable(GL_BLEND) before the second texture and at the same time on both machines the transparency changes only for the second object.
I so understand, the correct behavior in Windows? Which way to look in Linux, where to look for a bug? Dig system settings, video driver, or just add some kind of glEnable in the software that I forgot about? Now at the beginning there are: GL_TEXTURE_2D, render(GL_TRIANGLES), GL_DEPTH_TEST, GL_CULL_FACE
Ps: Question removed, glColor4f(1.f, 1.f, 1.f, 1.f) cured everything on Ubuntu after the second texture, I can't check Windows yet . An invite has been sent to the author of the answer :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question