| 234 | |
| 235 | |
| 236 | void checkReadbackState(EGLDisplay edpy, EGLSurface draw, EGLSurface read, |
| 237 | EGLContext ctx) |
| 238 | { |
| 239 | if(eglGetCurrentDisplay() != edpy) |
| 240 | THROWNL("Current display changed"); |
| 241 | if(eglGetCurrentSurface(EGL_DRAW) != draw |
| 242 | || eglGetCurrentSurface(EGL_READ) != read) |
| 243 | THROWNL("Current surface changed"); |
| 244 | if(eglGetCurrentContext() != ctx) |
| 245 | THROWNL("Context changed"); |
| 246 | } |
| 247 | |
| 248 | |
| 249 | typedef struct |
no test coverage detected