Commit e7590fcf authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Alexandre Julliard

wgl: Make sure we set a valid value for GLX_DRAWABLE_TYPE. Right now we default…

wgl: Make sure we set a valid value for GLX_DRAWABLE_TYPE. Right now we default to 0 which is illegal.
parent a46bd4bc
...@@ -795,8 +795,10 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf ...@@ -795,8 +795,10 @@ static int ConvertAttribWGLtoGLX(const int* iWGLAttr, int* oGLXAttr, Wine_GLPBuf
++cur; ++cur;
} }
/* Apply the OR'd drawable type bitmask now EVEN when WGL_DRAW_TO* is unset. /* By default glXChooseFBConfig defaults to GLX_WINDOW_BIT. wglChoosePixelFormatARB searches through
* It is needed in all cases because GLX_DRAWABLE_TYPE default to GLX_WINDOW_BIT. */ * all formats. Unless drawattrib is set to a non-zero value override it with ~0, so that pixmap and pbuffer
* formats appear as well. */
if(!drawattrib) drawattrib = ~0;
PUSH2(oGLXAttr, GLX_DRAWABLE_TYPE, drawattrib); PUSH2(oGLXAttr, GLX_DRAWABLE_TYPE, drawattrib);
TRACE("pAttr[?] = GLX_DRAWABLE_TYPE: %#x\n", drawattrib); TRACE("pAttr[?] = GLX_DRAWABLE_TYPE: %#x\n", drawattrib);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment