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
01878bbf
Commit
01878bbf
authored
Oct 28, 2002
by
Jason Edmeades
Committed by
Alexandre Julliard
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle texture FVF formats when no texture is bound.
parent
6abd817d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
25 deletions
+30
-25
device.c
dlls/d3d8/device.c
+30
-25
No files found.
dlls/d3d8/device.c
View file @
01878bbf
...
...
@@ -299,30 +299,35 @@ void DrawPrimitiveI(LPDIRECT3DDEVICE8 iface,
float
s
,
t
,
r
,
q
;
/* Query tex coords */
switch
(
IDirect3DBaseTexture8Impl_GetType
((
LPDIRECT3DBASETEXTURE8
)
This
->
StateBlock
.
textures
[
0
]))
{
case
D3DRTYPE_TEXTURE
:
s
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
t
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
TRACE
(
"tex:%d, s,t=%f,%f
\n
"
,
textureNo
,
s
,
t
);
glMultiTexCoord2fARB
(
GL_TEXTURE0_ARB
+
textureNo
,
s
,
t
);
break
;
case
D3DRTYPE_VOLUMETEXTURE
:
s
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
t
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
r
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
TRACE
(
"tex:%d, s,t,r=%f,%f,%f
\n
"
,
textureNo
,
s
,
t
,
r
);
glMultiTexCoord3fARB
(
GL_TEXTURE0_ARB
+
textureNo
,
s
,
t
,
r
);
break
;
default:
r
=
0
;
q
=
0
;
/* Avoid compiler warnings, need these vars later for other textures */
FIXME
(
"Unhandled texture type
\n
"
);
if
(
This
->
StateBlock
.
textures
[
textureNo
]
!=
NULL
)
{
switch
(
IDirect3DBaseTexture8Impl_GetType
((
LPDIRECT3DBASETEXTURE8
)
This
->
StateBlock
.
textures
[
textureNo
]))
{
case
D3DRTYPE_TEXTURE
:
s
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
t
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
TRACE
(
"tex:%d, s,t=%f,%f
\n
"
,
textureNo
,
s
,
t
);
glMultiTexCoord2fARB
(
GL_TEXTURE0_ARB
+
textureNo
,
s
,
t
);
break
;
case
D3DRTYPE_VOLUMETEXTURE
:
s
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
t
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
r
=
*
(
float
*
)
curPos
;
curPos
=
curPos
+
sizeof
(
float
);
TRACE
(
"tex:%d, s,t,r=%f,%f,%f
\n
"
,
textureNo
,
s
,
t
,
r
);
glMultiTexCoord3fARB
(
GL_TEXTURE0_ARB
+
textureNo
,
s
,
t
,
r
);
break
;
default:
r
=
0
;
q
=
0
;
/* Avoid compiler warnings, need these vars later for other textures */
FIXME
(
"Unhandled texture type
\n
"
);
}
}
else
{
/* Note I have seen a program actually do this, so just hide it and continue */
TRACE
(
"Very odd - texture requested in FVF but not bound!
\n
"
);
}
}
...
...
@@ -3061,7 +3066,7 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetVertexShader(LPDIRECT3DDEVICE8 iface, D
}
if
(
Handle
<=
VS_HIGHESTFIXEDFXF
)
{
TRACE
(
"(%p) : FVF Shader, Handle=%l
d
\n
"
,
This
,
Handle
);
TRACE
(
"(%p) : FVF Shader, Handle=%l
x
\n
"
,
This
,
Handle
);
return
D3D_OK
;
}
else
{
FIXME
(
"(%p) : Created shader, Handle=%lx stub
\n
"
,
This
,
Handle
);
...
...
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