Lines Matching refs:GLX_surf

743    struct GLX_egl_surface *GLX_surf = GLX_egl_surface(surf);
745 if (GLX_surf->destroy)
746 GLX_surf->destroy(GLX_dpy->dpy, GLX_surf->glx_drawable);
748 free(GLX_surf);
834 struct GLX_egl_surface *GLX_surf;
837 GLX_surf = CALLOC_STRUCT(GLX_egl_surface);
838 if (!GLX_surf) {
843 if (!_eglInitSurface(&GLX_surf->Base, disp, EGL_WINDOW_BIT,
845 free(GLX_surf);
849 GLX_surf->drawable = window;
852 GLX_surf->glx_drawable = GLX_drv->glXCreateWindow(GLX_dpy->dpy,
854 GLX_surf->drawable, NULL);
857 GLX_surf->glx_drawable = GLX_surf->drawable;
860 if (!GLX_surf->glx_drawable) {
861 free(GLX_surf);
866 GLX_surf->destroy = GLX_drv->glXDestroyWindow;
869 GLX_surf->Base.Width = width;
870 GLX_surf->Base.Height = height;
872 return &GLX_surf->Base;
882 struct GLX_egl_surface *GLX_surf;
885 GLX_surf = CALLOC_STRUCT(GLX_egl_surface);
886 if (!GLX_surf) {
891 if (!_eglInitSurface(&GLX_surf->Base, disp, EGL_PIXMAP_BIT,
893 free(GLX_surf);
897 GLX_surf->drawable = pixmap;
900 GLX_surf->glx_drawable = GLX_drv->glXCreatePixmap(GLX_dpy->dpy,
902 GLX_surf->drawable, NULL);
910 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPixmap(GLX_dpy->dpy,
911 vinfo, GLX_surf->drawable);
916 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPixmap(GLX_dpy->dpy,
918 GLX_surf->drawable);
921 if (!GLX_surf->glx_drawable) {
922 free(GLX_surf);
926 GLX_surf->destroy = (GLX_dpy->have_1_3) ?
930 GLX_surf->Base.Width = width;
931 GLX_surf->Base.Height = height;
933 return &GLX_surf->Base;
942 struct GLX_egl_surface *GLX_surf;
946 GLX_surf = CALLOC_STRUCT(GLX_egl_surface);
947 if (!GLX_surf) {
952 if (!_eglInitSurface(&GLX_surf->Base, disp, EGL_PBUFFER_BIT,
954 free(GLX_surf);
961 GLX_surf->drawable = None;
965 if (GLX_surf->Base.Width) {
967 attribs[i++] = GLX_surf->Base.Width;
969 if (GLX_surf->Base.Height) {
971 attribs[i++] = GLX_surf->Base.Height;
975 GLX_surf->glx_drawable = GLX_drv->glXCreatePbuffer(GLX_dpy->dpy,
979 GLX_surf->glx_drawable = GLX_drv->glXCreateGLXPbufferSGIX(GLX_dpy->dpy,
981 GLX_surf->Base.Width,
982 GLX_surf->Base.Height,
986 if (!GLX_surf->glx_drawable) {
987 free(GLX_surf);
991 GLX_surf->destroy = (GLX_dpy->have_1_3) ?
994 return &GLX_surf->Base;
1015 struct GLX_egl_surface *GLX_surf = GLX_egl_surface(draw);
1017 GLX_drv->glXSwapBuffers(GLX_dpy->dpy, GLX_surf->glx_drawable);