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
57d97112
Commit
57d97112
authored
Mar 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fix some sign compare warnings.
parent
67da604e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
device.c
dlls/d3d8/tests/device.c
+4
-7
visual.c
dlls/d3d8/tests/visual.c
+1
-1
No files found.
dlls/d3d8/tests/device.c
View file @
57d97112
...
...
@@ -93,11 +93,8 @@ static int get_refcount(IUnknown *object)
if (container_ptr && container_ptr != (void *)0x1337c0d3) IUnknown_Release((IUnknown *)container_ptr); \
}
static
void
check_mipmap_levels
(
IDirect3DDevice8
*
device
,
int
width
,
int
height
,
int
count
)
static
void
check_mipmap_levels
(
IDirect3DDevice8
*
device
,
UINT
width
,
UINT
height
,
UINT
count
)
{
IDirect3DBaseTexture8
*
texture
=
NULL
;
HRESULT
hr
=
IDirect3DDevice8_CreateTexture
(
device
,
width
,
height
,
0
,
0
,
D3DFMT_X8R8G8B8
,
D3DPOOL_DEFAULT
,
(
IDirect3DTexture8
**
)
&
texture
);
...
...
@@ -587,8 +584,8 @@ cleanup:
CHECK_RELEASE
(
pVertexBuffer
,
pDevice
,
--
refcount
);
CHECK_RELEASE
(
pIndexBuffer
,
pDevice
,
--
refcount
);
/* Shaders */
if
(
dVertexShader
!=
-
1
)
IDirect3DDevice8_DeleteVertexShader
(
pDevice
,
dVertexShader
);
if
(
dPixelShader
!=
-
1
)
IDirect3DDevice8_DeletePixelShader
(
pDevice
,
dPixelShader
);
if
(
dVertexShader
!=
~
0U
)
IDirect3DDevice8_DeleteVertexShader
(
pDevice
,
dVertexShader
);
if
(
dPixelShader
!=
~
0U
)
IDirect3DDevice8_DeletePixelShader
(
pDevice
,
dPixelShader
);
/* Textures */
CHECK_RELEASE
(
pTexture
,
pDevice
,
--
refcount
);
CHECK_RELEASE
(
pCubeTexture
,
pDevice
,
--
refcount
);
...
...
@@ -598,7 +595,7 @@ cleanup:
CHECK_RELEASE
(
pImageSurface
,
pDevice
,
--
refcount
);
CHECK_RELEASE
(
pRenderTarget3
,
pDevice
,
--
refcount
);
/* Misc */
if
(
dStateBlock
!=
-
1
)
IDirect3DDevice8_DeleteStateBlock
(
pDevice
,
dStateBlock
);
if
(
dStateBlock
!=
~
0U
)
IDirect3DDevice8_DeleteStateBlock
(
pDevice
,
dStateBlock
);
/* This will destroy device - cannot check the refcount here */
if
(
pSwapChain
)
CHECK_RELEASE_REFCOUNT
(
pSwapChain
,
0
);
...
...
dlls/d3d8/tests/visual.c
View file @
57d97112
...
...
@@ -1156,7 +1156,7 @@ static void texop_test(IDirect3DDevice8 *device)
D3DCOLOR
color
;
D3DCAPS8
caps
;
HRESULT
hr
;
int
i
;
unsigned
int
i
;
static
const
struct
{
float
x
,
y
,
z
;
...
...
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