wined3d: Initialize volume format.
This commit is contained in:
parent
c61af3af8d
commit
257692e087
@ -291,23 +291,23 @@ HRESULT WINAPI IWineD3DVolumeImpl_LoadTexture(IWineD3DVolume *iface, GLenum gl_l
|
|||||||
TRACE("Calling glTexImage3D %x level=%d, intfmt=%x, w=%d, h=%d,d=%d, 0=%d, glFmt=%x, glType=%x, Mem=%p\n",
|
TRACE("Calling glTexImage3D %x level=%d, intfmt=%x, w=%d, h=%d,d=%d, 0=%d, glFmt=%x, glType=%x, Mem=%p\n",
|
||||||
GL_TEXTURE_3D,
|
GL_TEXTURE_3D,
|
||||||
gl_level,
|
gl_level,
|
||||||
D3DFmt2GLIntFmt(myDevice, This->currentDesc.Format),
|
D3DFmt2GLIntFmt(myDevice, This->resource.format),
|
||||||
This->currentDesc.Width,
|
This->currentDesc.Width,
|
||||||
This->currentDesc.Height,
|
This->currentDesc.Height,
|
||||||
This->currentDesc.Depth,
|
This->currentDesc.Depth,
|
||||||
0,
|
0,
|
||||||
D3DFmt2GLFmt(myDevice, This->currentDesc.Format),
|
D3DFmt2GLFmt(myDevice, This->resource.format),
|
||||||
D3DFmt2GLType(myDevice, This->currentDesc.Format),
|
D3DFmt2GLType(myDevice, This->resource.format),
|
||||||
This->resource.allocatedMemory);
|
This->resource.allocatedMemory);
|
||||||
glTexImage3D(GL_TEXTURE_3D,
|
glTexImage3D(GL_TEXTURE_3D,
|
||||||
gl_level,
|
gl_level,
|
||||||
D3DFmt2GLIntFmt(myDevice, This->currentDesc.Format),
|
D3DFmt2GLIntFmt(myDevice, This->resource.format),
|
||||||
This->currentDesc.Width,
|
This->currentDesc.Width,
|
||||||
This->currentDesc.Height,
|
This->currentDesc.Height,
|
||||||
This->currentDesc.Depth,
|
This->currentDesc.Depth,
|
||||||
0,
|
0,
|
||||||
D3DFmt2GLFmt(myDevice, This->currentDesc.Format),
|
D3DFmt2GLFmt(myDevice, This->resource.format),
|
||||||
D3DFmt2GLType(myDevice, This->currentDesc.Format),
|
D3DFmt2GLType(myDevice, This->resource.format),
|
||||||
This->resource.allocatedMemory);
|
This->resource.allocatedMemory);
|
||||||
checkGLcall("glTexImage3D");
|
checkGLcall("glTexImage3D");
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
|
@ -734,6 +734,13 @@ typedef struct IWineD3DCubeTextureImpl
|
|||||||
|
|
||||||
extern const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl;
|
extern const IWineD3DCubeTextureVtbl IWineD3DCubeTexture_Vtbl;
|
||||||
|
|
||||||
|
typedef struct _WINED3DVOLUMET_DESC
|
||||||
|
{
|
||||||
|
UINT Width;
|
||||||
|
UINT Height;
|
||||||
|
UINT Depth;
|
||||||
|
} WINED3DVOLUMET_DESC;
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
* IWineD3DVolume implementation structure (extends IUnknown)
|
* IWineD3DVolume implementation structure (extends IUnknown)
|
||||||
*/
|
*/
|
||||||
@ -744,7 +751,7 @@ typedef struct IWineD3DVolumeImpl
|
|||||||
IWineD3DResourceClass resource;
|
IWineD3DResourceClass resource;
|
||||||
|
|
||||||
/* WineD3DVolume Information */
|
/* WineD3DVolume Information */
|
||||||
D3DVOLUME_DESC currentDesc;
|
WINED3DVOLUMET_DESC currentDesc;
|
||||||
IWineD3DBase *container;
|
IWineD3DBase *container;
|
||||||
UINT bytesPerPixel;
|
UINT bytesPerPixel;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user