All pastes #47877 Raw Edit

kommerck

public text v1 · immutable
#47877 ·published 2006-04-02 13:48 UTC
rendered paste body
diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c
index c7d3147..e9046ca 100644
--- a/dlls/opengl32/wgl.c
+++ b/dlls/opengl32/wgl.c
@@ -551,7 +551,7 @@ BOOL WINAPI wglMakeCurrent(HDC hdc,
        draw_vis_id = describeDrawable(ctx, drawable);
        ctx_vis_id = describeContext(ctx);

-       if (-1 == draw_vis_id || (draw_vis_id == visualid && draw_vis_id != ctx_vis_id)) {
+       if (visualid != ctx_vis_id) {
          /**
           * Inherits from root window so reuse desktop visual
           */