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
96c7a4d6
Commit
96c7a4d6
authored
Dec 10, 2013
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Buffers do not support user memory.
parent
d9bd9a9a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
device.c
dlls/d3d9/device.c
+14
-0
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+9
-0
No files found.
dlls/d3d9/device.c
View file @
96c7a4d6
...
...
@@ -879,7 +879,14 @@ static HRESULT WINAPI d3d9_device_CreateVertexBuffer(IDirect3DDevice9Ex *iface,
iface
,
size
,
usage
,
fvf
,
pool
,
buffer
,
shared_handle
);
if
(
shared_handle
)
{
if
(
pool
!=
D3DPOOL_DEFAULT
)
{
WARN
(
"Trying to create a shared vertex buffer in pool %#x.
\n
"
,
pool
);
return
D3DERR_NOTAVAILABLE
;
}
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
}
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
...
...
@@ -911,7 +918,14 @@ static HRESULT WINAPI d3d9_device_CreateIndexBuffer(IDirect3DDevice9Ex *iface, U
iface
,
size
,
usage
,
format
,
pool
,
buffer
,
shared_handle
);
if
(
shared_handle
)
{
if
(
pool
!=
D3DPOOL_DEFAULT
)
{
WARN
(
"Trying to create a shared index buffer in pool %#x.
\n
"
,
pool
);
return
D3DERR_NOTAVAILABLE
;
}
FIXME
(
"Resource sharing not implemented, *shared_handle %p.
\n
"
,
*
shared_handle
);
}
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
*
object
));
if
(
!
object
)
...
...
dlls/d3d9/tests/d3d9ex.c
View file @
96c7a4d6
...
...
@@ -541,6 +541,8 @@ static void test_user_memory(void)
IDirect3DTexture9
*
texture
;
IDirect3DCubeTexture9
*
cube_texture
;
IDirect3DVolumeTexture9
*
volume_texture
;
IDirect3DVertexBuffer9
*
vertex_buffer
;
IDirect3DIndexBuffer9
*
index_buffer
;
D3DLOCKED_RECT
locked_rect
;
UINT
refcount
;
HWND
window
;
...
...
@@ -596,6 +598,13 @@ static void test_user_memory(void)
ok
(
hr
==
D3DERR_INVALIDCALL
,
"Got unexpected hr %#x.
\n
"
,
hr
);
}
hr
=
IDirect3DDevice9Ex_CreateIndexBuffer
(
device
,
16
,
0
,
D3DFMT_INDEX32
,
D3DPOOL_SYSTEMMEM
,
&
index_buffer
,
&
mem
);
ok
(
hr
==
D3DERR_NOTAVAILABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9Ex_CreateVertexBuffer
(
device
,
16
,
0
,
0
,
D3DPOOL_SYSTEMMEM
,
&
vertex_buffer
,
&
mem
);
ok
(
hr
==
D3DERR_NOTAVAILABLE
,
"Got unexpected hr %#x.
\n
"
,
hr
);
HeapFree
(
GetProcessHeap
(),
0
,
mem
);
refcount
=
IDirect3DDevice9Ex_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
...
...
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