Giter VIP home page Giter VIP logo

Comments (4)

ljexplore avatar ljexplore commented on May 29, 2024

I forgot to say I'm using SoXt release 1.4.0

from soxt.

ljexplore avatar ljexplore commented on May 29, 2024

Also I should have said the error occurs when the program is creating an SoXtExaminerViewer.

from soxt.

ljexplore avatar ljexplore commented on May 29, 2024

I found the code in SoXtGLWidget that selects the visual. I replicated that in my program, and found that glxChooseVisual() never returns a visual. I tried removing all attributes so it should return any GLX visual, but still nothing. xdpyinfo shows the GLX extension (see below), and as originally posted, glxinfo shows plenty of visuals.

For a sanity check I tried running glxgears and that does work, so XQuartz GLX support can't be completed broken...

name of display: :0
version number: 11.0
vendor string: The X.Org Foundation
vendor release number: 11907000
X.Org version: 1.19.7
maximum request size: 16777212 bytes
motion buffer size: 256
bitmap unit, bit order, padding: 32, LSBFirst, 32
image byte order: LSBFirst
number of supported pixmap formats: 7
supported pixmap formats:
depth 1, bits_per_pixel 1, scanline_pad 32
depth 4, bits_per_pixel 8, scanline_pad 32
depth 8, bits_per_pixel 8, scanline_pad 32
depth 15, bits_per_pixel 16, scanline_pad 32
depth 16, bits_per_pixel 16, scanline_pad 32
depth 24, bits_per_pixel 32, scanline_pad 32
depth 32, bits_per_pixel 32, scanline_pad 32
keycode range: minimum 8, maximum 255
focus: None
number of extensions: 23
Apple-DRI
Apple-WM
BIG-REQUESTS
DAMAGE
DOUBLE-BUFFER
GLX
Generic Event Extension
MIT-SCREEN-SAVER
MIT-SHM
Present
RANDR
RENDER
SECURITY
SGI-GLX
SHAPE
SYNC
X-Resource
XC-MISC
XFIXES
XINERAMA
XInputExtension
XKEYBOARD
XVideo
default screen number: 0
number of screens: 1

from soxt.

ljexplore avatar ljexplore commented on May 29, 2024

Ok, I figured it out testing with the glxgears source code.

Homebrew apparently installed versions of Xt and X11. If I compile linked against the homebrew installed versions, glxChooseVisual always returns null. If I force linkage with the XQuartz versions, then glxChooseVisual works.

from soxt.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.