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
a06e002e
Commit
a06e002e
authored
Aug 03, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a wined3d private WINED3DSBT_RECORDED.
parent
b21c7854
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
device.c
dlls/d3d8/device.c
+6
-0
stateblock.c
dlls/d3d9/stateblock.c
+6
-0
device.c
dlls/ddraw/device.c
+5
-0
wined3d_types.h
include/wine/wined3d_types.h
+1
-0
No files found.
dlls/d3d8/device.c
View file @
a06e002e
...
...
@@ -1165,6 +1165,12 @@ static HRESULT WINAPI IDirect3DDevice8Impl_CreateStateBlock(LPDIRECT3DDEVICE8 if
TRACE
(
"(%p) Relay
\n
"
,
This
);
if
(
Type
!=
D3DSBT_ALL
&&
Type
!=
D3DSBT_PIXELSTATE
&&
Type
!=
D3DSBT_VERTEXSTATE
)
{
WARN
(
"Unexpected stateblock type, returning D3DERR_INVALIDCALL
\n
"
);
return
D3DERR_INVALIDCALL
;
}
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DStateBlock8Impl
));
if
(
NULL
==
object
)
{
*
pToken
=
0
;
...
...
dlls/d3d9/stateblock.c
View file @
a06e002e
...
...
@@ -122,6 +122,12 @@ HRESULT WINAPI IDirect3DDevice9Impl_CreateStateBlock(LPDIRECT3DDEVICE9 iface, D3
TRACE
(
"(%p) Relay
\n
"
,
This
);
if
(
Type
!=
D3DSBT_ALL
&&
Type
!=
D3DSBT_PIXELSTATE
&&
Type
!=
D3DSBT_VERTEXSTATE
)
{
WARN
(
"Unexpected stateblock type, returning D3DERR_INVALIDCALL
\n
"
);
return
D3DERR_INVALIDCALL
;
}
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IDirect3DStateBlock9Impl
));
if
(
NULL
==
object
)
return
E_OUTOFMEMORY
;
object
->
lpVtbl
=
&
Direct3DStateBlock9_Vtbl
;
...
...
dlls/ddraw/device.c
View file @
a06e002e
...
...
@@ -5070,6 +5070,11 @@ IDirect3DDeviceImpl_7_CreateStateBlock(IDirect3DDevice7 *iface,
WARN
(
"BlockHandle == NULL, returning DDERR_INVALIDPARAMS
\n
"
);
return
DDERR_INVALIDPARAMS
;
}
if
(
Type
!=
D3DSBT_ALL
&&
Type
!=
D3DSBT_PIXELSTATE
&&
Type
!=
D3DSBT_VERTEXSTATE
)
{
WARN
(
"Unexpected stateblock type, returning DDERR_INVALIDPARAMS
\n
"
);
return
DDERR_INVALIDPARAMS
;
}
EnterCriticalSection
(
&
ddraw_cs
);
*
BlockHandle
=
IDirect3DDeviceImpl_CreateHandle
(
This
);
...
...
include/wine/wined3d_types.h
View file @
a06e002e
...
...
@@ -1208,6 +1208,7 @@ typedef enum _WINED3DSTATEBLOCKTYPE {
WINED3DSBT_ALL
=
1
,
WINED3DSBT_PIXELSTATE
=
2
,
WINED3DSBT_VERTEXSTATE
=
3
,
WINED3DSBT_RECORDED
=
4
,
/* WineD3D private */
WINED3DSBT_FORCE_DWORD
=
0xffffffff
}
WINED3DSTATEBLOCKTYPE
;
...
...
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