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
bcbf5f39
Commit
bcbf5f39
authored
Mar 16, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Mar 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/wined3d: Vertex shader fixes.
parent
17b13bdc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
17 deletions
+21
-17
device.c
dlls/d3d8/device.c
+5
-2
device.c
dlls/wined3d/device.c
+16
-15
vertexshader.c
dlls/wined3d/vertexshader.c
+0
-0
No files found.
dlls/d3d8/device.c
View file @
bcbf5f39
...
@@ -1084,14 +1084,17 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShader(LPDIRECT3DDEVICE8 iface, DWO
...
@@ -1084,14 +1084,17 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShader(LPDIRECT3DDEVICE8 iface, DWO
if
(
VS_HIGHESTFIXEDFXF
>=
pShader
)
{
if
(
VS_HIGHESTFIXEDFXF
>=
pShader
)
{
TRACE
(
"Setting FVF, %d %ld
\n
"
,
VS_HIGHESTFIXEDFXF
,
pShader
);
TRACE
(
"Setting FVF, %d %ld
\n
"
,
VS_HIGHESTFIXEDFXF
,
pShader
);
IWineD3DDevice_SetFVF
(
This
->
WineD3DDevice
,
pShader
);
IWineD3DDevice_SetFVF
(
This
->
WineD3DDevice
,
pShader
);
/* Call SetVertexShader with a NULL shader to set the vertexshader in the stateblock to NULL. */
IWineD3DDevice_SetVertexShader
(
This
->
WineD3DDevice
,
NULL
);
}
else
{
}
else
{
FIXME
(
"Setting shader
\n
"
);
FIXME
(
"Setting shader
\n
"
);
if
(
MAX_SHADERS
<=
pShader
-
(
VS_HIGHESTFIXEDFXF
+
1
))
{
if
(
MAX_SHADERS
<=
pShader
-
(
VS_HIGHESTFIXEDFXF
+
1
))
{
FIXME
(
"(%p) : Number of shaders exceeds the maximum number of possible shaders
\n
"
,
This
);
FIXME
(
"(%p) : Number of shaders exceeds the maximum number of possible shaders
\n
"
,
This
);
hrc
=
D3DERR_INVALIDCALL
;
hrc
=
D3DERR_INVALIDCALL
;
}
else
{
}
else
{
/* IDirect3DVertexShader8Impl *shader = This->vShaders[pShader - (VS_HIGHESTFIXEDFXF + 1)]; */
IDirect3DVertexShader8Impl
*
shader
=
This
->
vShaders
[
pShader
-
(
VS_HIGHESTFIXEDFXF
+
1
)];
/* hrc = IWineD3DDevice_SetVertexShader(This->WineD3DDevice, 0 == shader ? NULL : shader->wineD3DVertexShader); */
hrc
=
IWineD3DDevice_SetVertexShader
(
This
->
WineD3DDevice
,
0
==
shader
?
NULL
:
shader
->
wineD3DVertexShader
);
}
}
}
}
TRACE
(
"(%p) : returning hr(%lu)
\n
"
,
This
,
hrc
);
TRACE
(
"(%p) : returning hr(%lu)
\n
"
,
This
,
hrc
);
...
...
dlls/wined3d/device.c
View file @
bcbf5f39
...
@@ -1622,6 +1622,22 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
...
@@ -1622,6 +1622,22 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
D3DCREATEOBJECTINSTANCE
(
object
,
VertexShader
)
D3DCREATEOBJECTINSTANCE
(
object
,
VertexShader
)
TRACE
(
"(%p) : Created Vertex shader %p
\n
"
,
This
,
*
ppVertexShader
);
TRACE
(
"(%p) : Created Vertex shader %p
\n
"
,
This
,
*
ppVertexShader
);
/* If a vertex declaration has been passed, save it to the vertex shader, this affects d3d8 only. */
/* Further it needs to be set before calling SetFunction as SetFunction needs the declaration. */
if
(
pDeclaration
!=
NULL
)
{
IWineD3DVertexDeclaration
*
vertexDeclaration
;
hr
=
IWineD3DDevice_CreateVertexDeclaration
(
iface
,
pDeclaration
,
&
vertexDeclaration
,
NULL
);
if
(
D3D_OK
==
hr
)
{
TRACE
(
"(%p) : Setting vertex declaration to %p
\n
"
,
This
,
vertexDeclaration
);
object
->
vertexDeclaration
=
vertexDeclaration
;
}
else
{
FIXME
(
"(%p) : Failed to set the declaration, returning D3DERR_INVALIDCALL
\n
"
,
iface
);
IWineD3DVertexShader_Release
(
*
ppVertexShader
);
return
D3DERR_INVALIDCALL
;
}
}
hr
=
IWineD3DVertexShader_SetFunction
(
*
ppVertexShader
,
pFunction
);
hr
=
IWineD3DVertexShader_SetFunction
(
*
ppVertexShader
,
pFunction
);
if
(
D3D_OK
!=
hr
)
{
if
(
D3D_OK
!=
hr
)
{
...
@@ -1639,21 +1655,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
...
@@ -1639,21 +1655,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_CreateVertexShader(IWineD3DDevice *iface, CONS
#endif
#endif
/* If a vertex declaration has been passed, save it to the vertex shader, this affects d3d8 only. */
if
(
pDeclaration
!=
NULL
)
{
IWineD3DVertexDeclaration
*
vertexDeclaration
;
hr
=
IWineD3DDevice_CreateVertexDeclaration
(
iface
,
pDeclaration
,
&
vertexDeclaration
,
NULL
);
if
(
D3D_OK
==
hr
)
{
TRACE
(
"(%p) : Setting vertex declaration to %p
\n
"
,
This
,
vertexDeclaration
);
object
->
vertexDeclaration
=
vertexDeclaration
;
}
else
{
FIXME
(
"(%p) : Failed to set the declaration, returning D3DERR_INVALIDCALL
\n
"
,
iface
);
IWineD3DVertexShader_Release
(
*
ppVertexShader
);
return
D3DERR_INVALIDCALL
;
}
}
return
D3D_OK
;
return
D3D_OK
;
}
}
...
...
dlls/wined3d/vertexshader.c
View file @
bcbf5f39
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