소스 검색

egl_dri2: Discard similar configs

tags/mesa-7.11-rc1
Benjamin Franzke 14 년 전
부모
커밋
83c68758be
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    4
      src/egl/drivers/dri2/egl_dri2.c

+ 2
- 4
src/egl/drivers/dri2/egl_dri2.c 파일 보기

@@ -200,10 +200,8 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
else if (!double_buffer && !conf->dri_single_config)
conf->dri_single_config = dri_config;
else
/* a similar config type is already added
* => attach it as new config
*/
num_configs = 0;
/* a similar config type is already added (unlikely) => discard */
return NULL;
}
else if (num_configs == 0) {
conf = malloc(sizeof *conf);

Loading…
취소
저장