| 834 | |
| 835 | |
| 836 | void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, |
| 837 | GLenum format, GLenum type, GLvoid *pixels) |
| 838 | { |
| 839 | if(faker::getOGLExcludeCurrent() || faker::getEGLXContextCurrent()) |
| 840 | { |
| 841 | _glReadPixels(x, y, width, height, format, type, pixels); |
| 842 | return; |
| 843 | } |
| 844 | |
| 845 | TRY(); |
| 846 | |
| 847 | backend::readPixels(x, y, width, height, format, type, pixels); |
| 848 | |
| 849 | CATCH(); |
| 850 | } |
| 851 | |
| 852 | |
| 853 | // Sometimes XNextEvent() is called from a thread other than the |