Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 33DC7781B79 for ; Wed, 15 Jan 2020 17:57:50 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id u2so914921wmc.3 for ; Wed, 15 Jan 2020 09:57:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=h6g-de.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=SYLQd0O/xBTwpXCyEJCEH97IaQmLbScMP4w+LPQbqkQ=; b=nmEK4MocYhIko1altXNhSJ7ECw6weBOZP/T126OkZ1uhql/bjd54SQ78czj/TCsQ3t nbP1wdMixYVpTdqzdYxwZM95bisxyUdCwUdhHTp5ekboxrpdE07LyRSlvRr4QgHCU/BV 6pCl/pOkx+TXnUbtS/FRmaExjFO87BYOFsgAlcBNAIYXefo6QySCLUEMGMQBJQT2VhUl wd6Pnxu3FKzXe89DqDwk+tZRZNEN+1tP1mrwg6FJl7wwTFVsxuA44JROJPm22GYUSpRU v9mXDN0obfG0EQuPVrCXDocnuWRLotFRz9OFUhhK2iexYIt2csV1/uJO3yfMytCllVJd rrGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=SYLQd0O/xBTwpXCyEJCEH97IaQmLbScMP4w+LPQbqkQ=; b=EUEbG3jU8BP+J4HhSbqKUcwK5oPE9Ns6kxA3Omng8v5X8ErWFZmxL8aNPjqE7Vu7kH US23EIF8eSicQSdj88AHMeU+pBQ3vNUILEnBS55p+2CoCsakSPJQreNOv970wvbI5Dlf r4Rl+pZC9YxCK661J3dH4hsucAosygZ5hjN3k1s6zoydG20mKli6MrUHdwPM6ipDaxJu VMf2UZyqIG5GAL3ToNpB1378BB6knXDsPsR7NeR2eWHKR+w3WNnpsa8vBM/oYzTknxS3 b6tfFFL1Tvtxw0R8n+DQEv6RgsJ8qjz8InvJuI3fFVfYFSt6PTiDeirt1ejqj3j9onOr G2dA== X-Gm-Message-State: APjAAAWhDZ/IVA+FeQbugwoGo4eJRFekVBuwA0MJH8jRJcCiNKqm/1uC IOmxBaiJ/GTy9vDDNKIObxZUovg+OpY= X-Google-Smtp-Source: APXvYqxc+UHLfbKEsY0auNQo9m3WUihAOppMhciLQVfyVxbT5PvJ++tgs/d03yZggDy1Z0D4+44BaA== X-Received: by 2002:a7b:cc6a:: with SMTP id n10mr1211784wmj.170.1579111069235; Wed, 15 Jan 2020 09:57:49 -0800 (PST) Received: from ?IPv6:2a02:8106:26:b100:c68:86a3:64f3:7aff? ([2a02:8106:26:b100:c68:86a3:64f3:7aff]) by smtp.gmail.com with ESMTPSA id y17sm721517wma.36.2020.01.15.09.57.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jan 2020 09:57:48 -0800 (PST) Subject: Re: SDL apps and glxgears fail to open under GNOME+Wayland To: David Demelier , "alpine-user@lists.alpinelinux.org" References: <2e88c29eb1dcbab2d0f3e1fda8f1929e06d6f1ac.camel@malikania.fr> From: Paul Zillmann Message-ID: <1dbce77b-c109-3e5c-a852-c4be772dc486@h6g.de> Date: Wed, 15 Jan 2020 18:57:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <2e88c29eb1dcbab2d0f3e1fda8f1929e06d6f1ac.camel@malikania.fr> Content-Type: multipart/alternative; boundary="------------C58904C3505C0C03DC7D39CB" Content-Language: en-US This is a multi-part message in MIME format. --------------C58904C3505C0C03DC7D39CB Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello David, could you set the SDL_VIDEODRIVER as a permanent environment variable? Maybe there is a workaround with this package [1] but I don't have high hopes for that. The Arch Linux Wiki [2] states: > To run a SDL2 application on Wayland, set |SDL_VIDEODRIVER=wayland|. > > Note: Many proprietary games come bundled with old versions of SDL, > which don't support Wayland and might break entirely if you set > |SDL_VIDEODRIVER=wayland|. To force the application to run with > XWayland, set |SDL_VIDEODRIVER=x11|. P.S.: just ignore the dude. everybody here does so. 1: https://pkgs.alpinelinux.org/package/v3.11/main/x86_64/xorg-server-xwayland 2: https://wiki.archlinux.org/index.php/Wayland - Paul Am 14.01.20 um 12:20 schrieb David Demelier: > Hello, > > I'm running GNOME under wayland on Alpine 3.11. It works almost > flawlessly but I do have a trouble regarding SDL based applications and > glxgears. > > $ ./molko > GLX is not supported > $ glxgears > Error: couldn't get an RGB, Double-buffered visual > > Note: using SDL_VIDEODRIVER=wayland works fine though. > > Did I miss to do/install something? I have a intel card from Thinkpad > x1 carbon. > > Regards > --------------C58904C3505C0C03DC7D39CB Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello David,

could you set the SDL_VIDEODRIVER as a permanent environment variable?
Maybe there is a workaround with this package [1] but I don't have high hopes for that.
The Arch Linux Wiki [2] states:

To run a SDL2 application on Wayland, set SDL_VIDEODRIVER=wayland.

Note: Many proprietary games come bundled with old versions of SDL, which don't support Wayland and might break entirely if you set SDL_VIDEODRIVER=wayland. To force the application to run with XWayland, set SDL_VIDEODRIVER=x11.

P.S.: just ignore the dude. everybody here does so.

1: https://pkgs.alpinelinux.org/package/v3.11/main/x86_64/xorg-server-xwayland
2: https://wiki.archlinux.org/index.php/Wayland

- Paul

Am 14.01.20 um 12:20 schrieb David Demelier:
Hello,

I'm running GNOME under wayland on Alpine 3.11. It works almost
flawlessly but I do have a trouble regarding SDL based applications and
glxgears.

$ ./molko 
GLX is not supported
$ glxgears
Error: couldn't get an RGB, Double-buffered visual

Note: using SDL_VIDEODRIVER=wayland works fine though.

Did I miss to do/install something? I have a intel card from Thinkpad
x1 carbon.

Regards

--------------C58904C3505C0C03DC7D39CB--