VirtualBox

Ignore:
Timestamp:
Jul 21, 2009 9:16:52 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
50306
Message:

crOpenGL: update to wine 1.1.26

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/cubetexture.c

    r20612 r21731  
    150150        IWineD3DDeviceImpl *device, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool, IUnknown *parent)
    151151{
    152     const WineD3D_GL_Info *gl_info = &device->adapter->gl_info;
     152    const struct wined3d_gl_info *gl_info = &device->adapter->gl_info;
    153153    const struct GlPixelFormatDesc *format_desc = getFormatDescEntry(format, gl_info);
    154154    UINT pow2_edge_length;
     
    220220    {
    221221        /* Precalculated scaling for 'faked' non power of two texture coords. */
    222         texture->baseTexture.pow2Matrix[0] = 1.0;
    223         texture->baseTexture.pow2Matrix[5] = 1.0;
    224         texture->baseTexture.pow2Matrix[10] = 1.0;
    225         texture->baseTexture.pow2Matrix[15] = 1.0;
     222        texture->baseTexture.pow2Matrix[0] = 1.0f;
     223        texture->baseTexture.pow2Matrix[5] = 1.0f;
     224        texture->baseTexture.pow2Matrix[10] = 1.0f;
     225        texture->baseTexture.pow2Matrix[15] = 1.0f;
    226226    }
    227227    else
     
    231231        texture->baseTexture.pow2Matrix[5] = ((float)edge_length) / ((float)pow2_edge_length);
    232232        texture->baseTexture.pow2Matrix[10] = ((float)edge_length) / ((float)pow2_edge_length);
    233         texture->baseTexture.pow2Matrix[15] = 1.0;
     233        texture->baseTexture.pow2Matrix[15] = 1.0f;
    234234        texture->baseTexture.pow2Matrix_identity = FALSE;
    235235    }
     
    411411}
    412412
     413/* Context activation is done by the caller. */
    413414static HRESULT WINAPI IWineD3DCubeTextureImpl_BindTexture(IWineD3DCubeTexture *iface, BOOL srgb) {
    414415    IWineD3DCubeTextureImpl *This = (IWineD3DCubeTextureImpl *)iface;
Note: See TracChangeset for help on using the changeset viewer.

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