Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
257692e0
Commit
257692e0
authored
May 10, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
May 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Initialize volume format.
parent
c61af3af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
7 deletions
+14
-7
volume.c
dlls/wined3d/volume.c
+6
-6
wined3d_private.h
dlls/wined3d/wined3d_private.h
+8
-1
No files found.
dlls/wined3d/volume.c
View file @
257692e0
...
...
@@ -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
"
,
GL_TEXTURE_3D
,
gl_level
,
D3DFmt2GLIntFmt
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLIntFmt
(
myDevice
,
This
->
resource
.
f
ormat
),
This
->
currentDesc
.
Width
,
This
->
currentDesc
.
Height
,
This
->
currentDesc
.
Depth
,
0
,
D3DFmt2GLFmt
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLType
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLFmt
(
myDevice
,
This
->
resource
.
f
ormat
),
D3DFmt2GLType
(
myDevice
,
This
->
resource
.
f
ormat
),
This
->
resource
.
allocatedMemory
);
glTexImage3D
(
GL_TEXTURE_3D
,
gl_level
,
D3DFmt2GLIntFmt
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLIntFmt
(
myDevice
,
This
->
resource
.
f
ormat
),
This
->
currentDesc
.
Width
,
This
->
currentDesc
.
Height
,
This
->
currentDesc
.
Depth
,
0
,
D3DFmt2GLFmt
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLType
(
myDevice
,
This
->
currentDesc
.
F
ormat
),
D3DFmt2GLFmt
(
myDevice
,
This
->
resource
.
f
ormat
),
D3DFmt2GLType
(
myDevice
,
This
->
resource
.
f
ormat
),
This
->
resource
.
allocatedMemory
);
checkGLcall
(
"glTexImage3D"
);
return
WINED3D_OK
;
...
...
dlls/wined3d/wined3d_private.h
View file @
257692e0
...
...
@@ -734,6 +734,13 @@ typedef struct IWineD3DCubeTextureImpl
extern
const
IWineD3DCubeTextureVtbl
IWineD3DCubeTexture_Vtbl
;
typedef
struct
_WINED3DVOLUMET_DESC
{
UINT
Width
;
UINT
Height
;
UINT
Depth
;
}
WINED3DVOLUMET_DESC
;
/*****************************************************************************
* IWineD3DVolume implementation structure (extends IUnknown)
*/
...
...
@@ -744,7 +751,7 @@ typedef struct IWineD3DVolumeImpl
IWineD3DResourceClass
resource
;
/* WineD3DVolume Information */
D3DVOLUME_DESC
currentDesc
;
WINED3DVOLUMET_DESC
currentDesc
;
IWineD3DBase
*
container
;
UINT
bytesPerPixel
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment