MCPcopy Create free account
hub / github.com/VirtualGL/virtualgl / eglCreatePlatformWindowSurface

Function eglCreatePlatformWindowSurface

server/faker-egl.cpp:572–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570
571
572EGLSurface 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
597EGLSurface eglCreatePlatformWindowSurfaceEXT(EGLDisplay display,
598 EGLConfig config, void *native_window, const EGLint *attrib_list)

Callers 2

readbackTestFunction · 0.85
extensionQueryTestFunction · 0.85

Calls 1

eglCreateWindowSurfaceFunction · 0.85

Tested by

no test coverage detected