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
3b06fc92
Commit
3b06fc92
authored
Aug 10, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use EXT_provoking_vertex to match Direct3D's provoking vertex convention.
parent
ac64bf64
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
visual.c
dlls/d3d9/tests/visual.c
+9
-2
context.c
dlls/wined3d/context.c
+6
-0
No files found.
dlls/d3d9/tests/visual.c
View file @
3b06fc92
...
...
@@ -6586,8 +6586,15 @@ static void shademode_test(IDirect3DDevice9 *device)
switch
(
shademode
)
{
case
D3DSHADE_FLAT
:
/* Should take the color of the first vertex of each triangle */
todo_wine
ok
(
color0
==
0x00ff0000
,
"FLAT shading has color0 %08x, expected 0x00ff0000 (todo)
\n
"
,
color0
);
todo_wine
ok
(
color1
==
0x0000ff00
,
"FLAT shading has color1 %08x, expected 0x0000ff00 (todo)
\n
"
,
color1
);
if
(
0
)
{
/* This test depends on EXT_provoking_vertex being
* available. This extension is currently (20090810)
* not common enough to let the test fail if it isn't
* present. */
ok
(
color0
==
0x00ff0000
,
"FLAT shading has color0 %08x, expected 0x00ff0000
\n
"
,
color0
);
ok
(
color1
==
0x0000ff00
,
"FLAT shading has color1 %08x, expected 0x0000ff00
\n
"
,
color1
);
}
shademode
=
D3DSHADE_GOURAUD
;
break
;
case
D3DSHADE_GOURAUD
:
...
...
dlls/wined3d/context.c
View file @
3b06fc92
...
...
@@ -1357,6 +1357,12 @@ struct wined3d_context *CreateContext(IWineD3DDeviceImpl *This, IWineD3DSurfaceI
glTexEnvi
(
GL_POINT_SPRITE_ARB
,
GL_COORD_REPLACE_ARB
,
GL_TRUE
);
checkGLcall
(
"glTexEnvi(GL_POINT_SPRITE_ARB, GL_COORD_REPLACE_ARB, GL_TRUE)"
);
}
if
(
GL_SUPPORT
(
EXT_PROVOKING_VERTEX
))
{
GL_EXTCALL
(
glProvokingVertexEXT
(
GL_FIRST_VERTEX_CONVENTION_EXT
));
}
LEAVE_GL
();
This
->
frag_pipe
->
enable_extension
((
IWineD3DDevice
*
)
This
,
TRUE
);
...
...
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