Changeset 84888 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Jun 21, 2020 6:41:16 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r84742 r84888 3514 3514 */ 3515 3515 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 */ 3517 3519 static int const aConfigAttribList[] = 3518 3520 { … … 3522 3524 GLX_DRAWABLE_TYPE, GLX_PIXMAP_BIT, // Must support GLX pixmaps 3523 3525 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_RECTANGLEfor the frontend code3526 GLX_BIND_TO_TEXTURE_TARGETS_EXT, GLX_TEXTURE_2D_BIT_EXT, // Must support GL_TEXTURE_2D for the frontend code 3525 3527 GLX_DOUBLEBUFFER, False, // No need for double buffering for a pixmap. 3526 3528 GLX_RED_SIZE, 8, // True color RGB with 8 bits per channel. … … 3570 3572 continue; 3571 3573 3572 /* Pixmap will be used as TEXTURE_ RECTANGLE. */3574 /* Pixmap will be used as TEXTURE_2D. */ 3573 3575 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)) 3575 3577 continue; 3576 3578 … … 3605 3607 static int const aPixmapAttribList[] = 3606 3608 { 3607 GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_ RECTANGLE_EXT,3609 GLX_TEXTURE_TARGET_EXT, GLX_TEXTURE_2D_EXT, 3608 3610 GLX_TEXTURE_FORMAT_EXT, GLX_TEXTURE_FORMAT_RGBA_EXT, 3609 3611 GLX_MIPMAP_TEXTURE_EXT, p->fMipmap, … … 3731 3733 else 3732 3734 { 3735 LogRel4(("VMSVGA: vmsvga3dBackDefineScreen: %Rrc\n", rc)); 3733 3736 vmsvga3dHwScreenDestroy(pState, p); 3734 3737 RTMemFree(p);
Note:
See TracChangeset
for help on using the changeset viewer.