Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8d7a0196
Commit
8d7a0196
authored
Oct 31, 2006
by
Ivan Gyurdiev
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use D3DCUBEMAP_FACES consistently in the WINED3D namespace.
parent
aa164647
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
cubetexture.c
dlls/wined3d/cubetexture.c
+5
-5
device.c
dlls/wined3d/device.c
+1
-1
No files found.
dlls/wined3d/cubetexture.c
View file @
8d7a0196
...
@@ -145,7 +145,7 @@ static void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
...
@@ -145,7 +145,7 @@ static void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
/* If were dirty then reload the surfaces */
/* If were dirty then reload the surfaces */
if
(
This
->
baseTexture
.
dirty
)
{
if
(
This
->
baseTexture
.
dirty
)
{
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
i
++
)
{
for
(
i
=
0
;
i
<
This
->
baseTexture
.
levels
;
i
++
)
{
for
(
j
=
D3DCUBEMAP_FACE_POSITIVE_X
;
j
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
;
j
++
)
{
for
(
j
=
WINED3DCUBEMAP_FACE_POSITIVE_X
;
j
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
;
j
++
)
{
if
(
setGlTextureDesc
)
if
(
setGlTextureDesc
)
IWineD3DSurface_SetGlTextureDesc
(
This
->
surfaces
[
j
][
i
],
This
->
baseTexture
.
textureName
,
cube_targets
[
j
]);
IWineD3DSurface_SetGlTextureDesc
(
This
->
surfaces
[
j
][
i
],
This
->
baseTexture
.
textureName
,
cube_targets
[
j
]);
IWineD3DSurface_LoadTexture
(
This
->
surfaces
[
j
][
i
]);
IWineD3DSurface_LoadTexture
(
This
->
surfaces
[
j
][
i
]);
...
@@ -280,7 +280,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeText
...
@@ -280,7 +280,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeText
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
D3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
*
ppCubeMapSurface
=
This
->
surfaces
[
FaceType
][
Level
];
*
ppCubeMapSurface
=
This
->
surfaces
[
FaceType
][
Level
];
IWineD3DSurface_AddRef
(
*
ppCubeMapSurface
);
IWineD3DSurface_AddRef
(
*
ppCubeMapSurface
);
...
@@ -299,7 +299,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_LockRect(IWineD3DCubeTexture *ifac
...
@@ -299,7 +299,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_LockRect(IWineD3DCubeTexture *ifac
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
D3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_LockRect
(
This
->
surfaces
[
FaceType
][
Level
],
pLockedRect
,
pRect
,
Flags
);
hr
=
IWineD3DSurface_LockRect
(
This
->
surfaces
[
FaceType
][
Level
],
pLockedRect
,
pRect
,
Flags
);
}
}
...
@@ -316,7 +316,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_UnlockRect(IWineD3DCubeTexture *if
...
@@ -316,7 +316,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_UnlockRect(IWineD3DCubeTexture *if
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
D3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_UnlockRect
(
This
->
surfaces
[
FaceType
][
Level
]);
hr
=
IWineD3DSurface_UnlockRect
(
This
->
surfaces
[
FaceType
][
Level
]);
}
}
...
@@ -333,7 +333,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_AddDirtyRect(IWineD3DCubeTexture
...
@@ -333,7 +333,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_AddDirtyRect(IWineD3DCubeTexture
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
This
->
baseTexture
.
dirty
=
TRUE
;
This
->
baseTexture
.
dirty
=
TRUE
;
TRACE
(
"(%p) : dirtyfication of faceType(%d) Level (0)
\n
"
,
This
,
FaceType
);
TRACE
(
"(%p) : dirtyfication of faceType(%d) Level (0)
\n
"
,
This
,
FaceType
);
if
(
FaceType
>=
D3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_AddDirtyRect
(
This
->
surfaces
[
FaceType
][
0
],
pDirtyRect
);
hr
=
IWineD3DSurface_AddDirtyRect
(
This
->
surfaces
[
FaceType
][
0
],
pDirtyRect
);
}
else
{
}
else
{
WARN
(
"(%p) overflow FaceType(%d)
\n
"
,
This
,
FaceType
);
WARN
(
"(%p) overflow FaceType(%d)
\n
"
,
This
,
FaceType
);
...
...
dlls/wined3d/device.c
View file @
8d7a0196
...
@@ -6343,7 +6343,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, I
...
@@ -6343,7 +6343,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateTexture (IWineD3DDevice *iface, I
for
(
i
=
0
;
i
<
levels
;
++
i
)
{
for
(
i
=
0
;
i
<
levels
;
++
i
)
{
/* Update each cube face */
/* Update each cube face */
for
(
faceType
=
D3DCUBEMAP_FACE_POSITIVE_X
;
faceType
<=
D3DCUBEMAP_FACE_NEGATIVE_Z
;
++
faceType
){
for
(
faceType
=
WINED3DCUBEMAP_FACE_POSITIVE_X
;
faceType
<=
WINE
D3DCUBEMAP_FACE_NEGATIVE_Z
;
++
faceType
){
hr
=
IWineD3DCubeTexture_GetCubeMapSurface
((
IWineD3DCubeTexture
*
)
pSourceTexture
,
faceType
,
i
,
&
srcSurface
);
hr
=
IWineD3DCubeTexture_GetCubeMapSurface
((
IWineD3DCubeTexture
*
)
pSourceTexture
,
faceType
,
i
,
&
srcSurface
);
if
(
WINED3D_OK
!=
hr
)
{
if
(
WINED3D_OK
!=
hr
)
{
FIXME
(
"(%p) : Failed to get src cube surface facetype %d, level %d
\n
"
,
This
,
faceType
,
i
);
FIXME
(
"(%p) : Failed to get src cube surface facetype %d, level %d
\n
"
,
This
,
faceType
,
i
);
...
...
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