VirtualBox

Changeset 48611 in vbox for trunk


Ignore:
Timestamp:
Sep 20, 2013 4:15:25 PM (11 years ago)
Author:
vboxsync
Message:

wined3d: fix win8.1 ie rendering (unpack alignment 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/Makefile.kmk

    r48155 r48611  
    174174        VBOX_WITH_WINE_FIX_STRINFOBUF \
    175175        VBOX_WITH_WINE_FIX_SHADERCLEANUP \
     176        VBOX_WITH_WINE_FIX_SURFUPDATA \
    176177        VBOX_WITH_WINE_DBG
    177178#wined3d_DEFS        += VBOX_WITH_WINE_FIXES
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine_new/wined3d/surface.c

    r48345 r48611  
    26332633                update_w, update_h, format->glFormat, format->glType, addr);
    26342634
     2635#ifdef VBOX_WITH_WINE_FIX_SURFUPDATA
     2636        gl_info->gl_ops.gl.p_glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
     2637#endif
    26352638        gl_info->gl_ops.gl.p_glPixelStorei(GL_UNPACK_ROW_LENGTH, src_pitch / format->byte_count);
    26362639        gl_info->gl_ops.gl.p_glTexSubImage2D(surface->texture_target, surface->texture_level,
    26372640                dst_point->x, dst_point->y, update_w, update_h, format->glFormat, format->glType, addr);
    26382641        gl_info->gl_ops.gl.p_glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
     2642#ifdef VBOX_WITH_WINE_FIX_SURFUPDATA
     2643        gl_info->gl_ops.gl.p_glPixelStorei(GL_UNPACK_ALIGNMENT, surface->resource.device->surface_alignment);
     2644#endif
    26392645        checkGLcall("glTexSubImage2D");
    26402646    }
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