GLX (initialism for "OpenGL Extension to the X Window System") provides the interface connecting OpenGL and the X Window System: it enables programs wishing to use OpenGL to do so within a window provided by the X Window System.
Questions tagged [glx]
179 questions
104
votes
7 answers
Disable vertical sync for glxgears
Sometimes you need to check whether you Linux 3D acceleration is really working (besides the glxinfo output). This can be quickly done by the glxgears tool. However, the FPS are often limited to the displays vertical refresh rate (i.e. 60 fps). So…

mschmoock
- 20,084
- 6
- 33
- 35
26
votes
1 answer
Multiple OpenGLX rendering contexts fail on Linux with proprietary Nvidia Drivers
When I try to run over 128 current OpenGLX rendering contexts on individual threads, the call to glXMakeCurrent starts failing.
Display *display = XOpenDisplay(":0")
Window root_win = RootWindow(display, screen);
Window win = XCreateWindow (display,…

Utku Zihnioglu
- 4,714
- 3
- 38
- 50
17
votes
6 answers
X11/GLX - Fullscreen mode?
I am trying to create a Linux application - a screensaver, in this case - and it is proving remarkably difficult to find information on the simple task of making a window full-screen. Even the code of existing screensavers makes no mention of how…

DigitalMan
- 2,440
- 5
- 26
- 32
13
votes
2 answers
OpenGL GLX extension not supported
I had installed OpenGL and freeglut in Ubuntu 10.04 and it worked fine in 10.04 and 10.10. But after I upgraded to 11.04, the applications I've developed using OpenGL is not running properly. They're compiling without errors, but when I try to…

SparrowG
- 221
- 1
- 4
- 13
13
votes
1 answer
SDL2 Can't create window since it couldn't find matching GLX visual
I have a problem as i am currently running Ubuntu Terminal on Windows 10. I also have XMing installed as my X-server(I use XMing for qemu,etc...). And i am trying to run this SDL2 Program. So i have this for main.cpp:
#include
#include…

amanuel2
- 4,508
- 4
- 36
- 67
12
votes
1 answer
Mysteriously invalid OpenGL context in Electron
I've created an C++ & OpenGL animation engine backed by GLX and GLEW, wrapped in a Node.js module via SWIG. The goal is to use the engine inside an Electron app in the browser process.
The engine appears quite stable. It's multi-context aware,…

Litty
- 1,856
- 1
- 16
- 35
8
votes
2 answers
If "pure XCB" OpenGL is impossible, then what's the use of the XCB/GLX API found in xcb/glx.h?
The official XCB documentation tells us that using OpenGL purely with XCB is impossible: one must also use Xlib.
This post by Bart Massey (creator of XCB) doesn't suggest this should be impossible. But I'm sure I'm missing something.
I've spent…

étale-cohomology
- 2,098
- 2
- 28
- 33
7
votes
1 answer
Libgdx not using Opengl ES 2.0
Preferably, I'd like to use OpenGL ES 2.0 for a new 3d game I started making. Anyway, I've been developing it on an Ubuntu PC (not top-of-the-line but decent) I bought in 2010.
Gdx.graphics.isGL20Available() returns false, and I'm quite sure my…

AnimatedRNG
- 1,859
- 3
- 26
- 39
6
votes
1 answer
Can't run OpenGL on WSL2
I am trying to run an OpenGL code on WSL2 but am getting the following error on trying to run the executable:
GLFW error 65543: GLX: Failed to create context: GLXBadFBConfig
Unable to create GLFW window
This is the code I am using to create a…

Daksh Rawat
- 301
- 1
- 3
- 11
6
votes
0 answers
GLFW fails on Debian (with Python)
I tried to make the question as reproducible as possible. So here is the docker commands:
docker run --name headless_test -ti python:3.6-jessie /bin/bash
And inside the docker execute the following lines:
apt update && apt install -y git xvfb…

user972014
- 3,296
- 6
- 49
- 89
6
votes
2 answers
Amazon EC2 Ubuntu + Xvfb: libGL error: failed to load driver: swrast
I am trying to run ParaView through Xvfb in a Ubuntu instance on Amazon EC2. I have installed X11/Xvfb related packages as per http://mike.ucoz.com/publ/programming/ubuntu/selenium_ubuntu_amazon_ec2_headless/8-1-0-4
But I can't seem to get past an…

Julien
- 61
- 1
- 2
5
votes
0 answers
Problems running openGL in a container
I am trying to containerize a QT-based GUI application (specifically, ITK-SNAP) with X11 forwarding. When I build an image (let's call it itk-snap:3.8) with the following Dockerfile
# 16.04 because https://askubuntu.com/a/895903
FROM…

Tim
- 2,123
- 4
- 27
- 44
5
votes
0 answers
How to use Xdummy to get GLX support on AWS
I am trying to use OpenAI gym through Jupyter on AWS (running Ubuntu 14.04 LTS). When I try and use the env.render() function I get an error. The problem is that env.render() uses pyglet, but when trying to import it I get the following error:…

Toke Faurby
- 5,788
- 9
- 41
- 62
5
votes
1 answer
OpenGL code not running : OpenGL GLX extension not supported by display
I have to run a code, it includes libraries GL/glut.h and GL/glew.h.
The code gets compiled well, by the instruction:
$ gcc test.c -lglut -lGLEW -lGL
But when I run it, I get the following error:
freeglut (./a.out): OpenGL GLX extension not…

roynalnaruto
- 329
- 2
- 6
- 17
5
votes
1 answer
Linux Rendering offscreen with OpenGL 3.2+ w/ FBOs
I have ubuntu machine, and a command line application written in OS X which renders something offscreen using FBOs. This is part of the code.
this->systemProvider->setupContext(); //be careful with this one. to add thingies to identify if a…

csotiriou
- 5,653
- 5
- 36
- 45