Lines Matching refs:cfg
116 EGLConfig *cfg; in select_config_for_window() local
136 cfg = (EGLConfig*) malloc(sizeof(EGLConfig) * max); in select_config_for_window()
137 if (!cfg) in select_config_for_window()
140 if (eglChooseConfig(dpy, attr, cfg, max, &n) == EGL_FALSE) { in select_config_for_window()
147 eglGetConfigAttrib(dpy, cfg[i], EGL_RED_SIZE, &r); in select_config_for_window()
148 eglGetConfigAttrib(dpy, cfg[i], EGL_GREEN_SIZE, &g); in select_config_for_window()
149 eglGetConfigAttrib(dpy, cfg[i], EGL_BLUE_SIZE, &b); in select_config_for_window()
150 eglGetConfigAttrib(dpy, cfg[i], EGL_ALPHA_SIZE, &a); in select_config_for_window()
152 *config = cfg[i]; in select_config_for_window()
153 free(cfg); in select_config_for_window()
159 free(cfg); in select_config_for_window()