VirtualBox

Changeset 48900 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Oct 4, 2013 8:07:33 PM (11 years ago)
Author:
vboxsync
Message:

wined3d: better viewport fix

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/d3d9/device.c

    r48345 r48900  
    14681468    wined3d_mutex_lock();
    14691469    hr = wined3d_device_set_render_target(device->wined3d_device, idx,
    1470             surface_impl ? surface_impl->wined3d_surface : NULL, TRUE);
     1470            surface_impl ? surface_impl->wined3d_surface : NULL,
     1471#ifdef VBOX_WITH_WDDM
     1472                    FALSE
     1473#else
     1474                    TRUE
     1475#endif
     1476                    );
    14711477    wined3d_mutex_unlock();
    14721478
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/device.c

    r48896 r48900  
    45414541    }
    45424542
    4543 #ifdef VBOX_WITH_WDDM
    4544     /* @todo: should we extend this to XPDM as well?
    4545      * MSDN says that setting a *new* render target causes the viewport update to full size of the rt.*/
    4546     prev = device->fb.render_targets[render_target_idx];
    4547     if (render_target == prev)
    4548         return WINED3D_OK;
    4549 #endif
    4550 
    45514543    /* Set the viewport and scissor rectangles, if requested. Tests show that
    45524544     * stateblock recording is ignored, the change goes directly into the
     
    45714563    }
    45724564
    4573 #ifndef VBOX_WITH_WDDM
     4565
    45744566    prev = device->fb.render_targets[render_target_idx];
    45754567    if (render_target == prev)
    45764568        return WINED3D_OK;
    4577 #endif
    45784569
    45794570    if (render_target)
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