| 570 | |
| 571 | |
| 572 | EGLSurface eglCreatePlatformWindowSurface(EGLDisplay display, EGLConfig config, |
| 573 | void *native_window, const EGLAttrib *attrib_list) |
| 574 | { |
| 575 | EGLint attribs[MAX_ATTRIBS + 1]; |
| 576 | int j = 0; |
| 577 | |
| 578 | if(!native_window) |
| 579 | { |
| 580 | faker::setEGLError(EGL_BAD_NATIVE_WINDOW); |
| 581 | return 0; |
| 582 | } |
| 583 | |
| 584 | if(attrib_list) |
| 585 | { |
| 586 | for(int i = 0; attrib_list[i] != EGL_NONE && i < MAX_ATTRIBS; i += 2) |
| 587 | { |
| 588 | attribs[j++] = attrib_list[i]; attribs[j++] = attrib_list[i + 1]; |
| 589 | } |
| 590 | } |
| 591 | attribs[j] = EGL_NONE; |
| 592 | |
| 593 | NativeWindowType *native_window_ptr = (NativeWindowType *)native_window; |
| 594 | return eglCreateWindowSurface(display, config, *native_window_ptr, attribs); |
| 595 | } |
| 596 | |
| 597 | EGLSurface eglCreatePlatformWindowSurfaceEXT(EGLDisplay display, |
| 598 | EGLConfig config, void *native_window, const EGLint *attrib_list) |
no test coverage detected