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
36c15d92
Commit
36c15d92
authored
Sep 06, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Test blocked texture creation restrictions.
parent
b7b028ca
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/d3d8/device.c
+8
-0
device.c
dlls/d3d8/tests/device.c
+0
-0
No files found.
dlls/d3d8/device.c
View file @
36c15d92
...
...
@@ -743,6 +743,7 @@ static HRESULT WINAPI d3d8_device_CreateTexture(IDirect3DDevice8 *iface,
TRACE
(
"iface %p, width %u, height %u, levels %u, usage %#x, format %#x, pool %#x, texture %p.
\n
"
,
iface
,
width
,
height
,
levels
,
usage
,
format
,
pool
,
texture
);
*
texture
=
NULL
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
return
D3DERR_OUTOFVIDEOMEMORY
;
...
...
@@ -772,6 +773,7 @@ static HRESULT WINAPI d3d8_device_CreateVolumeTexture(IDirect3DDevice8 *iface,
TRACE
(
"iface %p, width %u, height %u, depth %u, levels %u, usage %#x, format %#x, pool %#x, texture %p.
\n
"
,
iface
,
width
,
height
,
depth
,
levels
,
usage
,
format
,
pool
,
texture
);
*
texture
=
NULL
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
return
D3DERR_OUTOFVIDEOMEMORY
;
...
...
@@ -800,6 +802,7 @@ static HRESULT WINAPI d3d8_device_CreateCubeTexture(IDirect3DDevice8 *iface, UIN
TRACE
(
"iface %p, edge_length %u, levels %u, usage %#x, format %#x, pool %#x, texture %p.
\n
"
,
iface
,
edge_length
,
levels
,
usage
,
format
,
pool
,
texture
);
*
texture
=
NULL
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
return
D3DERR_OUTOFVIDEOMEMORY
;
...
...
@@ -933,6 +936,7 @@ static HRESULT WINAPI d3d8_device_CreateRenderTarget(IDirect3DDevice8 *iface, UI
TRACE
(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, lockable %#x, surface %p.
\n
"
,
iface
,
width
,
height
,
format
,
multisample_type
,
lockable
,
surface
);
*
surface
=
NULL
;
if
(
lockable
)
flags
|=
WINED3D_SURFACE_MAPPABLE
;
...
...
@@ -949,6 +953,8 @@ static HRESULT WINAPI d3d8_device_CreateDepthStencilSurface(IDirect3DDevice8 *if
TRACE
(
"iface %p, width %u, height %u, format %#x, multisample_type %#x, surface %p.
\n
"
,
iface
,
width
,
height
,
format
,
multisample_type
,
surface
);
*
surface
=
NULL
;
/* TODO: Verify that Discard is false */
return
d3d8_device_create_surface
(
device
,
width
,
height
,
format
,
WINED3D_SURFACE_MAPPABLE
,
surface
,
D3DUSAGE_DEPTHSTENCIL
,
D3DPOOL_DEFAULT
,
multisample_type
,
0
);
...
...
@@ -963,6 +969,8 @@ static HRESULT WINAPI d3d8_device_CreateImageSurface(IDirect3DDevice8 *iface, UI
TRACE
(
"iface %p, width %u, height %u, format %#x, surface %p.
\n
"
,
iface
,
width
,
height
,
format
,
surface
);
*
surface
=
NULL
;
return
d3d8_device_create_surface
(
device
,
width
,
height
,
format
,
WINED3D_SURFACE_MAPPABLE
,
surface
,
0
,
D3DPOOL_SYSTEMMEM
,
D3DMULTISAMPLE_NONE
,
0
);
}
...
...
dlls/d3d8/tests/device.c
View file @
36c15d92
This diff is collapsed.
Click to expand it.
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