- EGLint val;
- eglGetConfigAttrib(display, config, EGL_MIN_SWAP_INTERVAL, &val);
- if (i < val) {
- fprintf(stderr, "Cannot set swap interval to %d, minimum supported value is %d\n", i, val);
+ if (i < 0) {
+ fprintf(stderr, "Cannot set swap interval to %d, must not be negative\n", i);