Changeset 21731 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/cubetexture.c
- Timestamp:
- Jul 21, 2009 9:16:52 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50306
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/cubetexture.c
r20612 r21731 150 150 IWineD3DDeviceImpl *device, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool, IUnknown *parent) 151 151 { 152 const WineD3D_GL_Info *gl_info = &device->adapter->gl_info;152 const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; 153 153 const struct GlPixelFormatDesc *format_desc = getFormatDescEntry(format, gl_info); 154 154 UINT pow2_edge_length; … … 220 220 { 221 221 /* 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; 226 226 } 227 227 else … … 231 231 texture->baseTexture.pow2Matrix[5] = ((float)edge_length) / ((float)pow2_edge_length); 232 232 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; 234 234 texture->baseTexture.pow2Matrix_identity = FALSE; 235 235 } … … 411 411 } 412 412 413 /* Context activation is done by the caller. */ 413 414 static HRESULT WINAPI IWineD3DCubeTextureImpl_BindTexture(IWineD3DCubeTexture *iface, BOOL srgb) { 414 415 IWineD3DCubeTextureImpl *This = (IWineD3DCubeTextureImpl *)iface;
Note:
See TracChangeset
for help on using the changeset viewer.