Questions tagged [glx]

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.

179 questions
3
votes
1 answer

How come GLX-based applications can be run on Wayland on Ubuntu?

So GLX is the graphics context creation and management system for OpenGL on X11. But by design, Wayland is not X11-compatible and implements EGL for OpenGL context management rather than GLX. So how is it that on Wayland-based sessions on Ubuntu…
Dreamer
  • 1,139
  • 9
  • 18
3
votes
0 answers

Sharing OpenGL context between WebGL with a c++ glX, for either native NaCl or Node.js addon

My aim is to share resources (texture) between WebGL (in browser, canvas.getContext()) and glX extention (glXCreateContext [1]) for c++ (arch linux) in order to share a texture between WebGL and X. i.e. load a window from X (using the backing…
WhyMe
  • 535
  • 2
  • 13
3
votes
2 answers

Manually calling OpenGL functions

I've been working on creating an OpenGL function loading library which will help me call OpenGL functions when I need them. I have a getProcAddress function which uses glX. void* getProcAddress(const char *name) { auto pr =…
Poriferous
  • 1,566
  • 4
  • 20
  • 33
3
votes
2 answers

GLX Vsync event

I'm wondering if I could catch the screen vsync event by any file descriptor and [select | poll | epoll]ing it. Normally, if I'm right, glXSwapBuffers() doesn't block the process so I could do something like : int init() { create epollfd; …
Lewis Anesa
  • 102
  • 3
  • 12
3
votes
1 answer

Qt 5 use EGL backend for XCB

I am having some tearing issues with embedded Qt 5 with the XCB backend. I have just realized that perhaps this causes it to default to GLX and I have heard that one has a far greater chance of eliminating tearing using EGL. I also know that Qt has…
Gerharddc
  • 3,921
  • 8
  • 45
  • 83
3
votes
1 answer

glXCreateContext Magically Maps Window

After creating a display, I make a window with XCreateWindow. Then, as described here, I call XMapWindow and then immediately XUnmapWindow; this lets the X server know about the window so that commands (e.g. XMoveWindow) don't silently fail. The…
geometrian
  • 14,775
  • 10
  • 56
  • 132
3
votes
2 answers

Linux GLEW with GLX segfault (core dumped)

I am trying to set up in Linux a very basic program with OpenGL 3.2 core profile, and GLEW. I tried that with the help of this article. This is my code: #define GLEW_STATIC #include #include #include #include…
csotiriou
  • 5,653
  • 5
  • 36
  • 45
3
votes
1 answer

OpenGL: In VMware (debian x64), glxgears works - but not other OpenGL programs

After installing debian in VMware and installing all librarys required to run OpenGL applications with freeglut, I used glxgears to make sure everything works fine. # glxgears 3426 frames in 5.0 seconds = 685.171 FPS 3562 frames in 5.0 seconds =…
wiseberg
  • 31
  • 1
3
votes
1 answer

Fedora 19 using rpmfussion's NVIDIA driver: libGL error: failed to load driver: swrast

When running an app that uses Qt 4.7 on my Fedora 19 box I am getting the following errors from the application: libGL: screen 0 does not appear to be DRI2 capable libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so libGL: OpenDriver: trying…
Matthew Hoggan
  • 7,402
  • 16
  • 75
  • 140
3
votes
2 answers

OpenGL Colorspace Conversion

Does anyone know how to create a texture with a YUV colorspace so that we can get hardware based YUV to RGB colorspace conversion without having to use a fragment shader? I'm using an NVidia 9400 and I don't see an obvious GL extension that seems…
Steven Behnke
  • 3,336
  • 3
  • 26
  • 34
2
votes
2 answers

"X Error" BadAlloc GLX BadContext on IntelSandyBridge (Intel HD Graphics 3000)

I'm running a debian stable ThinkPad X1 (1294-3QG) with exactly three packages from squeeze-backports needed for the GraphicsModi: initramfs-tools 0.99~bpo60+1 linux-base 3.4~bpo60+1 linux-image-3.2.0-0.bpo.2-amd64 3.2.9-1~bpo60 While running that…
Bastian Ebeling
  • 1,138
  • 11
  • 38
2
votes
1 answer

What is the purpose of 'framebuffer' when setting up a GL context?

In this example code it deals with framebuffers before setting up the context. I've read the man pages of the functions, but I still don't understand exactly what's going on. So my question is, what exactly is a framebuffer in GLX and how…
Pubby
  • 51,882
  • 13
  • 139
  • 180
2
votes
1 answer

glXCreateContextAttribsARB not found (on OpenGL 4.2 driver, GLX 1.4)

Strangely enough, despite the fact that I have GLX 1.4, it appears that I don't have glXCreateContextAttribsARB in my repos. I wonder if there's any reasonable explanation for this? This can't be a common issue. glxinfo name of display:…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
2
votes
0 answers

X2Go Error: X server does not support XInput 2

I am using the remote desktop software X2Go to use an Ubuntu 20.04 linux workstation from remote. I am tunneling from an Ubuntu 20.04 laptop. Initially, everything seems to work fine. When I start paraFoam, i get the following error…
MrLukas
  • 167
  • 1
  • 12
2
votes
1 answer

Drawing triangles with opengl with GL/gl.h and GL/glx.h on x11 System

I have read and pieced multiple projects together in order to create an x11 window with open gl working, with the preinstalled GL/gl.h and GL/glx.h. The problem I get is that the triangles I want to draw to the screen does not show. What I think is…
Snakehater
  • 145
  • 1
  • 9
1 2
3
11 12