2 Replies Latest reply on Aug 22, 2017 7:29 AM by pochi

    OpenGL:glBitmap depth cannot disable.

    pochi

      When we use glDepthRange(0.0, 0.0), depth of 1st glBitmap function cannot disable with a Radeon R7 250. Depth of 2nd glBitmap function is disable. I would like to know how to disable 1st  glBitmap too.

       

      glDepthFunc(GL_LEQUAL);

      glEnable(GL_DEPTH_TEST);

      glDepthMask(GL_TRUE);

       

      glPixelStoref(GL_UNPACK_ALIGNMENT, 1);

      glRasterPos3fv(vec);

       

      // Draw Bitmap (1st)

      glDepthRange(0.0, 0.0);

      glPixelStoref(GL_UNPACK_ALIGNMENT, 1);

      glRasterPos3fv(vec);

      glBitmap(16, 16, 8.0f, 8.0f, 10.0f, 0.0f, bitmapCircle16);

      glDepthRange(0.0, 1.0);

       

      // Draw Bitmap (2nd)

      glDepthRange(0.0, 0.0);

      glBitmap(16, 16, 8.0f, 8.0f, 10.0f, 0.0f, bitmapCircle16);

      glDepthRange(0.0, 1.0);