[AD] OpenGL 3.0 fails on Windows |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: allegro-developers@xxxxxxxxxxxxxxxxxx
- Subject: [AD] OpenGL 3.0 fails on Windows
- From: Karl Robillard <krobillard@xxxxxxxx>
- Date: Tue, 12 Oct 2021 17:08:17 -0400
- Arc-authentication-results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=krobillard@xxxxxxxx; dmarc=pass header.from=<krobillard@xxxxxxxx>
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1634072906; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=vHKD6PGxHLinMTLpt+GERns6quVTjHB5ly243R8Yqu8=; b=Ca/pjpOYyNt1nHr+1WjOHMJSidCosk5WZDw0qB7eVSvKkGXVZMzBpM8QIgRuNaPHs2VH5iqkNfsQfEWUY2JjsqLpWf/k+cNOTh2VOG6xYwc0xZ6huTnIaer5ce/bCfY8qoPA2kPglbTJEC6EIyIhT/uR232ms/kZp0+C5bMGmkc=
- Arc-seal: i=1; a=rsa-sha256; t=1634072906; cv=none; d=zohomail.com; s=zohoarc; b=LmKumAIkZ8S+ZLzfT1ynXN2Iu1OQdKSOZEKzgN5cUuJ2j4Ohmt/wCm5wD9RLO1RRTYJekJjX+KBfUDpgZambQgoKS1301vr6eOhnzlAy7tR5YH6TRA+GKVkLryICsH8uzkcIGq/ZpdM9DfE4YB2AGvRUHgkd3DsoJ8nn/ocIEg8=
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1634072906; s=zm2020; d=zoho.com; i=krobillard@xxxxxxxx; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Content-Type; bh=vHKD6PGxHLinMTLpt+GERns6quVTjHB5ly243R8Yqu8=; b=dmV2ZDrP8l9JjbeDnSCy3aB3FWieqhMZndQPstuDMFUjow7AjI6a5grP8NALLhE6 UoBDN4eECwhwzF3jgOJiEGyf6Rn7T74tCGkV2jVeH/tuMl02q3Gt02/Smegc+2t5SFc Va53DAcGBGNH+ePa3js+nAr3sZ317WMd9if32nLQ=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:subject:date:message-id:mime-version:content-type; b=qABjpwd3dx4semp1SMwzpmAyALNWFyudzGxu2+GL4SHNwF5/Ib4eEk+QPwimTOgy4y48QQ/3NeZ/ EhbNL/dVaIVKGoCmqQVyEEa7Tk/dxjj+YEZLZze5xmER+ddTxQpa
al_create_display() fails when the ALLEGRO_OPENGL_3_0 flag is used on Windows.
I am building the examples/ex_shader.cpp program with the following
modification:
display_flags = ALLEGRO_OPENGL | ALLEGRO_OPENGL_3_0 |
ALLEGRO_OPENGL_FORWARD_COMPATIBLE;
After linking with the debug libraries the allegro.log shows these errors:
display E wgl_disp.c:711 get_available_pixel_formats_ext [ 0.3711
2] WGL_ARB/EXT_pf not supported.
display I wgl_disp.c:785 get_available_pixel_formats_old [ 0.4048
8] Got 100 visuals.
...
display I wgl_disp.c:811 get_available_pixel_formats_old [ 0.4336
8] 44 visuals are good enough.
display I wgl_disp.c:852 select_pixel_format [ 0.4385
5] Chose visual no. 1
...
display E wgl_disp.c:943 create_display_internals [
0.45363] Unable to create a render context! Invalid handle.
display I wgl_disp.c:1310 display_thread_proc [
0.46417] wgl display thread exits
display E display.c:55 al_create_display [ 0.46502]
Failed to create display (NULL)
I am using the allegro-x86_64-w64-mingw32-gcc-10.2.0-posix-seh-
static-5.2.7.0.zip SDK. The example fails this way when running on Windows 7
and with Wine on Linux. It runs fine in both environments when only
ALLEGRO_OPENGL is used. I do not have a Windows 10 machine to test on.
Is there an Allegro test or example specifically for OpenGL 3.0?
-Karl