Git Product home page Git Product logo

Comments (7)

SamanthaBowen avatar SamanthaBowen commented on May 16, 2024

I looked back at the definition for the 'ksGpuContext' struct in gfxwrapper_opengl.h and noticed the #elif defined(OS_LINUX_XLIB) || defined(OS_LINUX_XCB_GLX) directive that decides if the struct has the XLib fields. Was the || defined(OS_LINUX_XCB_GLX) supposed to go with the #elif defined(OS_LINUX_XCB) block of XCB fields instead? I thought I checked if the code compiled with XCB, but maybe I only checked OS_LINUX_XCB and not OS_LINUX_XCB_GLX.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 16, 2024

Hmm, looks like the build system says:

    # XCB + XCB GLX is limited to OpenGL 2.1
    # add_definitions( -DOS_LINUX_XCB )
    # XCB + Xlib GLX 1.3
    add_definitions( -DOS_LINUX_XCB_GLX )

so it doesn't have all those fields. It does have connection - via window.connection, and the visualid and glxDrawable are still OK, but the other 3 are absent.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 16, 2024

Almost looks like the XCB OpenGL graphics binding is only half of what it needs to be - as in, it's missing a XCB + GLX xlib version. What a mess.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 16, 2024

Oh, interesting. The XCB hello_xr never ran because of a missing "platform adapter". I'll probably just partially revert/comment out the change to fix this for now.

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 16, 2024

and monado doesn't support the xcb binding. OK. So I have a partial fix available but for the release I'll just do the partial revert, so you can review the mess I made of the code :)

from openxr-sdk-source.

rpavlik avatar rpavlik commented on May 16, 2024

OK, the less-than-perfect fix has been released. There may actually be a spec bug here.

from openxr-sdk-source.

rpavlik-bot avatar rpavlik-bot commented on May 16, 2024

An issue (number 1278) has been filed to correspond to this issue in the internal Khronos GitLab.

If you have a Khronos account, you can access that issue at KHR:openxr/openxr#1278.

from openxr-sdk-source.

Related Issues (20)

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.