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
9ba3d03e
Commit
9ba3d03e
authored
Jul 08, 2008
by
Tobias Jakobi
Committed by
Alexandre Julliard
Jul 08, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8: Fix IDirect3DDevice8::CreateImageSurface pool type.
parent
413ce31e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
device.c
dlls/d3d8/device.c
+3
-1
surface.c
dlls/d3d8/tests/surface.c
+1
-1
No files found.
dlls/d3d8/device.c
View file @
9ba3d03e
...
...
@@ -697,12 +697,14 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateDepthStencilSurface(LPDIRECT3DD
return
hr
;
}
/* IDirect3DDevice8Impl::CreateImageSurface returns surface with pool type SYSTEMMEM */
static
HRESULT
WINAPI
IDirect3DDevice8Impl_CreateImageSurface
(
LPDIRECT3DDEVICE8
iface
,
UINT
Width
,
UINT
Height
,
D3DFORMAT
Format
,
IDirect3DSurface8
**
ppSurface
)
{
HRESULT
hr
;
TRACE
(
"Relay
\n
"
);
EnterCriticalSection
(
&
d3d8_cs
);
hr
=
IDirect3DDevice8Impl_CreateSurface
(
iface
,
Width
,
Height
,
Format
,
TRUE
/* Loackable */
,
FALSE
/*Discard*/
,
0
/* Level */
,
ppSurface
,
D3DRTYPE_SURFACE
,
0
/* Usage (undefined/none) */
,
D3DPOOL_SCRATCH
,
D3DMULTISAMPLE_NONE
,
0
/* MultisampleQuality */
);
hr
=
IDirect3DDevice8Impl_CreateSurface
(
iface
,
Width
,
Height
,
Format
,
TRUE
/* Loackable */
,
FALSE
/*Discard*/
,
0
/* Level */
,
ppSurface
,
D3DRTYPE_SURFACE
,
0
/* Usage (undefined/none) */
,
D3DPOOL_SYSTEMMEM
,
D3DMULTISAMPLE_NONE
,
0
/* MultisampleQuality */
);
LeaveCriticalSection
(
&
d3d8_cs
);
return
hr
;
}
...
...
dlls/d3d8/tests/surface.c
View file @
9ba3d03e
...
...
@@ -96,7 +96,7 @@ static void test_image_surface_pool(IDirect3DDevice8 *device) {
hr
=
IDirect3DSurface8_GetDesc
(
surface
,
&
surf_desc
);
ok
(
SUCCEEDED
(
hr
),
"GetDesc failed (0x%08x)
\n
"
,
hr
);
todo_wine
ok
((
surf_desc
.
Pool
==
D3DPOOL_SYSTEMMEM
),
ok
((
surf_desc
.
Pool
==
D3DPOOL_SYSTEMMEM
),
"CreateImageSurface returns surface with unexpected pool type %u (should be SYSTEMMEM = 2)
\n
"
,
surf_desc
.
Pool
);
IDirect3DSurface8_Release
(
surface
);
...
...
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