Changeset 21731 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/volumetexture.c
- Timestamp:
- Jul 21, 2009 9:16:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/volumetexture.c
r20612 r21731 42 42 IWineD3DVolumeTextureImpl *This = (IWineD3DVolumeTextureImpl *)iface; 43 43 IWineD3DDeviceImpl *device = This->resource.wineD3DDevice; 44 const WineD3D_GL_Info *gl_info = &device->adapter->gl_info;44 const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; 45 45 BOOL srgb_mode = This->baseTexture.is_srgb; 46 46 BOOL srgb_was_toggled = FALSE; … … 109 109 IWineD3DDeviceImpl *device, DWORD usage, WINED3DFORMAT format, WINED3DPOOL pool, IUnknown *parent) 110 110 { 111 const WineD3D_GL_Info *gl_info = &device->adapter->gl_info;111 const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; 112 112 const struct GlPixelFormatDesc *format_desc = getFormatDescEntry(format, gl_info); 113 113 UINT tmp_w, tmp_h, tmp_d; … … 172 172 173 173 /* Is NP2 support for volumes needed? */ 174 texture->baseTexture.pow2Matrix[0] = 1.0 ;175 texture->baseTexture.pow2Matrix[5] = 1.0 ;176 texture->baseTexture.pow2Matrix[10] = 1.0 ;177 texture->baseTexture.pow2Matrix[15] = 1.0 ;174 texture->baseTexture.pow2Matrix[0] = 1.0f; 175 texture->baseTexture.pow2Matrix[5] = 1.0f; 176 texture->baseTexture.pow2Matrix[10] = 1.0f; 177 texture->baseTexture.pow2Matrix[15] = 1.0f; 178 178 179 179 /* Generate all the surfaces. */ … … 341 341 } 342 342 343 /* Context activation is done by the caller. */ 343 344 static HRESULT WINAPI IWineD3DVolumeTextureImpl_BindTexture(IWineD3DVolumeTexture *iface, BOOL srgb) { 344 345 IWineD3DVolumeTextureImpl *This = (IWineD3DVolumeTextureImpl *)iface;
Note:
See TracChangeset
for help on using the changeset viewer.