VirtualBox

Changeset 84888 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
Jun 21, 2020 6:41:16 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt,Devices/Graphics: experimental GLX graphics output: use TEXTURE_2D

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r84742 r84888  
    35143514     */
    35153515
    3516     /* FBConfig attributes. */
     3516    /* FBConfig attributes.
     3517     * Using TEXTURE_2D because Intel Mesa driver does not seem to support TEXTURE_RECTANGLE for GLX pixmaps.
     3518     */
    35173519    static int const aConfigAttribList[] =
    35183520    {
     
    35223524        GLX_DRAWABLE_TYPE,               GLX_PIXMAP_BIT,         // Must support GLX pixmaps
    35233525        GLX_BIND_TO_TEXTURE_RGBA_EXT,    True,                   // Must support GLX_EXT_texture_from_pixmap
    3524         GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_RECTANGLE_BIT_EXT, // Must support GL_TEXTURE_RECTANGLE for the frontend code
     3526        GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT, // Must support GL_TEXTURE_2D for the frontend code
    35253527        GLX_DOUBLEBUFFER,                False,                  // No need for double buffering for a pixmap.
    35263528        GLX_RED_SIZE,                    8,                      // True color RGB with 8 bits per channel.
     
    35703572                continue;
    35713573
    3572             /* Pixmap will be used as TEXTURE_RECTANGLE. */
     3574            /* Pixmap will be used as TEXTURE_2D. */
    35733575            glXGetFBConfigAttrib(pState->display, paConfigs[i], GLX_BIND_TO_TEXTURE_TARGETS_EXT, &value);
    3574             if (!(value & GLX_TEXTURE_RECTANGLE_BIT_EXT))
     3576            if (!(value & GLX_TEXTURE_2D_BIT_EXT))
    35753577                continue;
    35763578
     
    36053607            static int const aPixmapAttribList[] =
    36063608            {
    3607                 GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_RECTANGLE_EXT,
     3609                GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_2D_EXT,
    36083610                GLX_TEXTURE_FORMAT_EXT, GLX_TEXTURE_FORMAT_RGBA_EXT,
    36093611                GLX_MIPMAP_TEXTURE_EXT, p->fMipmap,
     
    37313733    else
    37323734    {
     3735        LogRel4(("VMSVGA: vmsvga3dBackDefineScreen: %Rrc\n", rc));
    37333736        vmsvga3dHwScreenDestroy(pState, p);
    37343737        RTMemFree(p);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette