VirtualBox

Ignore:
Timestamp:
Jun 19, 2013 2:22:29 PM (12 years ago)
Author:
vboxsync
Message:

wddm/3d/wine: set host id impl

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/surface.c

    r46521 r46662  
    77677767    return hr;
    77687768}
     7769
     7770#ifdef VBOX_WITH_WDDM
     7771HRESULT CDECL wined3d_surface_get_host_id(struct wined3d_surface *surface, uint32_t *id)
     7772{
     7773    struct wined3d_texture *texture;
     7774    surface_internal_preload(surface, SRGB_RGB);
     7775
     7776    texture = surface->container;
     7777    if (texture && texture->level_count != 1 && texture->layer_count != 1)
     7778    {
     7779        ERR("unsupported level(%d) or layer(%d) count", texture->level_count, texture->layer_count);
     7780    }
     7781
     7782    if (!surface->texture_name)
     7783    {
     7784        ERR("no texture name!");
     7785        return E_FAIL;
     7786    }
     7787
     7788    *id = surface->texture_name;
     7789    return S_OK;
     7790}
     7791#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/wined3dwddm.def

    r46521 r46662  
    258258  wined3d_device_blt_voltex
    259259  wined3d_swapchain_present_rt
    260  
     260  wined3d_surface_get_host_id
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