wayland: Make eglQueryBufferWL succeed for width and height requests too
authorRob Bradford <rob@linux.intel.com>
Wed, 10 Apr 2013 10:36:24 +0000 (11:36 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 2 May 2013 20:46:04 +0000 (16:46 -0400)
Following the addition of the EGL_WIDTH and EGL_HEIGHT this function should
return EGL_TRUE for those requested attributes too.

src/egl/drivers/dri2/egl_dri2.c

index 1011f27665a6d3f0f12c1d31d553ad3239122e50..1bce314fa999e02513874201d9a165093cea4fff 100644 (file)
@@ -1623,10 +1623,10 @@ dri2_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *disp,
       return EGL_TRUE;
    case EGL_WIDTH:
       *value = buffer->buffer.width;
-      break;
+      return EGL_TRUE;
    case EGL_HEIGHT:
       *value = buffer->buffer.height;
-      break;
+      return EGL_TRUE;
    }
 
    return EGL_FALSE;