diff options
-rw-r--r-- | src/glx/dri_common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 8feb58777b8..ed0b134f00b 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -429,8 +429,10 @@ dri2_convert_glx_attribs(unsigned num_attribs, const uint32_t *attribs, uint32_t profile; int render_type = GLX_RGBA_TYPE; - if (num_attribs == 0) + if (num_attribs == 0) { + *api = __DRI_API_OPENGL; return true; + } /* This is actually an internal error, but what the heck. */ |