From owner-freebsd-questions@freebsd.org Thu Jan 7 20:07:28 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB88BA6777C for ; Thu, 7 Jan 2016 20:07:28 +0000 (UTC) (envelope-from afiskon@devzen.ru) Received: from relay16.nicmail.ru (relay16.nicmail.ru [195.208.5.134]) by mx1.freebsd.org (Postfix) with ESMTP id 6BA551B8D for ; Thu, 7 Jan 2016 20:07:27 +0000 (UTC) (envelope-from afiskon@devzen.ru) Received: from [109.70.25.43] (port=65246 helo=nicmail.ru) by f17.mail.nic.ru with esmtp (Exim 5.55) (envelope-from ) id 1aHGYr-0004rd-4e for freebsd-questions@freebsd.org; Thu, 07 Jan 2016 22:49:29 +0300 Received: from [10.0.6.227] (account afiskon@devzen.ru HELO fujitsu) by fcgp01.nicmail.ru (CommuniGate Pro SMTP 5.2.3) with ESMTPA id 387953018 for freebsd-questions@freebsd.org; Thu, 07 Jan 2016 22:49:29 +0300 Received: from [188.123.231.37] (account afiskon@devzen.ru HELO fujitsu) by proxy07.mail.nic.ru (Exim 5.55) with id 1aHGYr-00080u-8j for freebsd-questions@freebsd.org; Thu, 07 Jan 2016 22:49:29 +0300 Date: Thu, 7 Jan 2016 22:47:30 +0300 From: Eax Melanhovich To: freebsd-questions@freebsd.org Subject: FreeBSD 10.2 and OpenGL 3.3 on Intel HD Graphics 4000 Message-ID: <20160107224730.7839b41d@fujitsu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2016 20:07:28 -0000 Hello, all A few years ago I used FreeBSD on a desktop. Now there is a whole week of holidays here in Russia and since I was quite bored I decided to check status of FreeBSD as a desktop system once again. I must admit FreeBSD is now much better in this regard than it was back in 2009. Still I faced a problem I hope you could help me with. I'm currently learning OpenGL and first thing I tried to do right after installing desktop environment was to compile this project: https://github.com/afiskon/c-opengl-text Unfortunately there are some compatibility issues with clang in dependent libraries so I used gcc. Here is a problem. I installed FreeBSD 10.2 RELEASE on Toshiba Portege Z930-DKS laptop which has Intel HD Graphics 4000. This code: // demo/main.c glfwDefaultWindowHints(); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); glfwWindowHint(GLFW_SAMPLES, 4); resources->window = glfwCreateWindow(800, 600, "Demo", NULL, NULL); if(resources->window == NULL) { fprintf(stderr, "Failed to open GLFW window\n"); return -1; } Returns with error and following output: ERROR: code = 65543, descr = The requested client API version is unavailable Failed to open GLFW window I traced a problem to this point: (gdb) bt #0 errorCallback (code=65543, descr=0x41ea78 "The requested client API version is unavailable") at /home/eax/projects/c/c-opengl-text/demo/main.c:74 #1 0x000000000040ac6f in _glfwInputError (error=65543, format=0x0) at /home/eax/projects/c/c-opengl-text/glfw/src/init.c:111 #2 0x000000000040a6b4 in _glfwIsValidContext (ctxconfig=0x7fffffffe960) at /home/eax/projects/c/c-opengl-text/glfw/src/context.c:507 #3 0x000000000040d75f in glfwCreateWindow (width=800, height=600, title=0x41db99 "Demo", monitor=0x0, share=0x0) at /home/eax/projects/c/c-opengl-text/glfw/src/window.c:206 #4 0x000000000040419b in commonResourcesCreate (resources=0x7fffffffea30) at /home/eax/projects/c/c-opengl-text/demo/main.c:102 #5 0x00000000004068c7 in main () at /home/eax/projects/c/c-opengl-text/demo/main.c:806 Closer look to frame #2 shows that window->context.{major,minor} values are {3,2}. In other words this code requires OpenGL 3.3 but only OpenGL 3.2 can be provided. So my question is - does FreeBSD support OpenGL 3.3 on Intel HD Graphics 4000? Are there any drivers I need to install or something like this?