Skip to content

Commit e6112d0

Browse files
committed
Fixed potential issue for using PBuffer when PixBuf are not available on LIBGL_FB=3
1 parent 9e8037b commit e6112d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/glx/glx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ GLXFBConfig *gl4es_glXChooseFBConfig(Display *display, int screen,
18661866
attr[1] = EGL_PBUFFER_BIT;
18671867
egl_eglChooseConfig(eglDisplay, attr, NULL, 0, count);
18681868
// On Pandora and GLES2, only 565 PBuffer are available!
1869-
if(cr || cg || cb || ca) {
1869+
if((*count==0) && (cr || cg || cb || ca)) {
18701870
--cur;
18711871
if(cr) attr[cr] = 5; else { attr[cur] = EGL_RED_SIZE; attr[cur++] = 5; }
18721872
if(cg) attr[cg] = 6; else { attr[cur] = EGL_GREEN_SIZE; attr[cur++] = 6; }

0 commit comments

Comments
 (0)