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
cdc9f283
Commit
cdc9f283
authored
Oct 22, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Oct 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Only release a texture when it was created.
parent
8392a850
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
texture.c
dlls/d3dx9_36/tests/texture.c
+12
-12
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
cdc9f283
...
...
@@ -964,12 +964,12 @@ static void test_D3DXFillTexture(IDirect3DDevice9 *device)
}
size
>>=
1
;
}
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DTexture9_Release
(
tex
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
4
,
4
,
1
,
0
,
D3DFMT_A1R5G5B5
,
D3DPOOL_MANAGED
,
&
tex
,
NULL
);
...
...
@@ -1006,11 +1006,11 @@ static void test_D3DXFillTexture(IDirect3DDevice9 *device)
}
IDirect3DTexture9_UnlockRect
(
tex
,
0
);
}
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DTexture9_Release
(
tex
);
}
static
void
WINAPI
fillfunc_cube
(
D3DXVECTOR4
*
value
,
const
D3DXVECTOR3
*
texcoord
,
...
...
@@ -1117,12 +1117,12 @@ static void test_D3DXFillCubeTexture(IDirect3DDevice9 *device)
}
size
>>=
1
;
}
IDirect3DCubeTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DCubeTexture9_Release
(
tex
);
hr
=
IDirect3DDevice9_CreateCubeTexture
(
device
,
4
,
1
,
0
,
D3DFMT_A1R5G5B5
,
D3DPOOL_MANAGED
,
&
tex
,
NULL
);
...
...
@@ -1162,11 +1162,11 @@ static void test_D3DXFillCubeTexture(IDirect3DDevice9 *device)
IDirect3DCubeTexture9_UnlockRect
(
tex
,
f
,
0
);
}
}
IDirect3DCubeTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DCubeTexture9_Release
(
tex
);
}
static
void
WINAPI
fillfunc_volume
(
D3DXVECTOR4
*
value
,
const
D3DXVECTOR3
*
texcoord
,
...
...
@@ -1232,12 +1232,12 @@ static void test_D3DXFillVolumeTexture(IDirect3DDevice9 *device)
}
size
>>=
1
;
}
IDirect3DVolumeTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DVolumeTexture9_Release
(
tex
);
hr
=
IDirect3DDevice9_CreateVolumeTexture
(
device
,
4
,
4
,
4
,
1
,
0
,
D3DFMT_A1R5G5B5
,
D3DPOOL_MANAGED
,
&
tex
,
NULL
);
...
...
@@ -1277,11 +1277,11 @@ static void test_D3DXFillVolumeTexture(IDirect3DDevice9 *device)
}
IDirect3DVolumeTexture9_UnlockBox
(
tex
,
0
);
}
IDirect3DVolumeTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
IDirect3DVolumeTexture9_Release
(
tex
);
}
static
void
test_D3DXCreateTextureFromFileInMemory
(
IDirect3DDevice9
*
device
)
...
...
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