Every time I write a cube in SFML, walls begin to shine through it. Even the code that I took from the network had such an error. What could be the reason?

Source Code: PTRK ~

The same cube

  • In theory, the color of the walls has no alpha channel .. I don’t even see the problem .. - witaway
  • Most likely you forgot to turn on or turn on the wrong depth buffer and depth test when drawing (GL_DEPTH_TEST, glDepthFunc, etc.) - Kromster
  • But after all, there is a depth buffer included in the code ... Maybe the problem is in sfml? On sdl, this worked fine ... But I intend to study exactly sfml - witaway
  • There is another version of the problem and solution: stackoverflow.com/questions/9045843 - Kromster
  • Oh, it worked) Thank you) - witaway

0