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
02afd70f
Commit
02afd70f
authored
Jan 01, 2008
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Jan 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove four noop checks.
parent
a77249ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cubetexture.c
dlls/wined3d/cubetexture.c
+4
-4
No files found.
dlls/wined3d/cubetexture.c
View file @
02afd70f
...
...
@@ -273,7 +273,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_GetCubeMapSurface(IWineD3DCubeText
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
*
ppCubeMapSurface
=
This
->
surfaces
[
FaceType
][
Level
];
IWineD3DSurface_AddRef
(
*
ppCubeMapSurface
);
...
...
@@ -292,7 +292,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_LockRect(IWineD3DCubeTexture *ifac
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_LockRect
(
This
->
surfaces
[
FaceType
][
Level
],
pLockedRect
,
pRect
,
Flags
);
}
...
...
@@ -309,7 +309,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_UnlockRect(IWineD3DCubeTexture *if
HRESULT
hr
=
WINED3DERR_INVALIDCALL
;
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
Level
<
This
->
baseTexture
.
levels
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_UnlockRect
(
This
->
surfaces
[
FaceType
][
Level
]);
}
...
...
@@ -326,7 +326,7 @@ static HRESULT WINAPI IWineD3DCubeTextureImpl_AddDirtyRect(IWineD3DCubeTexture
IWineD3DCubeTextureImpl
*
This
=
(
IWineD3DCubeTextureImpl
*
)
iface
;
This
->
baseTexture
.
dirty
=
TRUE
;
TRACE
(
"(%p) : dirtyfication of faceType(%d) Level (0)
\n
"
,
This
,
FaceType
);
if
(
FaceType
>=
WINED3DCUBEMAP_FACE_POSITIVE_X
&&
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
if
(
FaceType
<=
WINED3DCUBEMAP_FACE_NEGATIVE_Z
)
{
hr
=
IWineD3DSurface_AddDirtyRect
(
This
->
surfaces
[
FaceType
][
0
],
pDirtyRect
);
}
else
{
WARN
(
"(%p) overflow FaceType(%d)
\n
"
,
This
,
FaceType
);
...
...
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