Fix HardwarePicking for OpenGL ES 3
- The Z buffer cannot be read with
glReadPixels(.., GL_DEPTH_COMPONENT,..)
in gles. - This commit works around by reading the depth attachment into a color attachment (RGBA).
- The acceptable combinations of glformat, gltype arguments for
glReadPixels
is very constrained, hence we need to cast as needed. - Define GL_BACK_[RIGHT, LEFT], GL_FRONT_[RIGHT, LEFT]* as GL_BACK and GL_FRONT for gles.
- closes #18734 (closed)
Edited by Jaswant Panchumarti (Kitware)