[PATCH 1/2] winex11: fix gl drawable type
Miklós Máté
mtmkls at gmail.com
Sat Jun 18 04:48:56 CDT 2016
This is what free_gl_drawable() expects. Cleanup wasn't an issue until I
introduced support for GLX 1.3.
Fixes https://bugs.winehq.org/show_bug.cgi?id=40767
Signed-off-by: Miklós Máté <mtmkls at gmail.com>
---
dlls/winex11.drv/opengl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index d89a193..cf74f96 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -1344,7 +1344,7 @@ static BOOL create_gl_drawable( HWND hwnd, struct gl_drawable *gl )
if (data)
{
- gl->type = DC_GL_WINDOW;
+ gl->type = DC_GL_CHILD_WIN;
gl->window = create_client_window( data, gl->visual );
if (gl->window)
gl->drawable = pglXCreateWindow( gdi_display, gl->format->fbconfig, gl->window, NULL );
--
2.8.1
More information about the wine-patches
mailing list