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
4272d92f
Commit
4272d92f
authored
Jun 17, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid the position_float4() fixup if the vertex pipe can handle…
wined3d: Avoid the position_float4() fixup if the vertex pipe can handle pre-transformed vertices itself.
parent
b62b740d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
directx.c
dlls/wined3d/directx.c
+8
-2
No files found.
dlls/wined3d/directx.c
View file @
4272d92f
...
...
@@ -4682,12 +4682,18 @@ static void WINE_GLAPI warn_no_specular_func(const void *data)
WARN
(
"GL_EXT_secondary_color not supported
\n
"
);
}
static
void
fillGLAttribFuncs
(
const
struct
wined3d_gl_info
*
gl_info
)
static
void
wined3d_adapter_init_ffp_attrib_ops
(
const
struct
wined3d_adapter
*
adapter
)
{
const
struct
wined3d_d3d_info
*
d3d_info
=
&
adapter
->
d3d_info
;
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
position_funcs
[
WINED3D_FFP_EMIT_FLOAT1
]
=
invalid_func
;
position_funcs
[
WINED3D_FFP_EMIT_FLOAT2
]
=
invalid_func
;
position_funcs
[
WINED3D_FFP_EMIT_FLOAT3
]
=
(
glAttribFunc
)
gl_info
->
gl_ops
.
gl
.
p_glVertex3fv
;
if
(
!
d3d_info
->
xyzrhw
)
position_funcs
[
WINED3D_FFP_EMIT_FLOAT4
]
=
position_float4
;
else
position_funcs
[
WINED3D_FFP_EMIT_FLOAT4
]
=
(
glAttribFunc
)
gl_info
->
gl_ops
.
gl
.
p_glVertex4fv
;
position_funcs
[
WINED3D_FFP_EMIT_D3DCOLOR
]
=
position_d3dcolor
;
position_funcs
[
WINED3D_FFP_EMIT_UBYTE4
]
=
invalid_func
;
position_funcs
[
WINED3D_FFP_EMIT_SHORT2
]
=
invalid_func
;
...
...
@@ -5031,7 +5037,7 @@ static BOOL wined3d_adapter_init(struct wined3d_adapter *adapter, UINT ordinal)
WineD3D_ReleaseFakeGLContext
(
&
fake_gl_ctx
);
fillGLAttribFuncs
(
&
adapter
->
gl_info
);
wined3d_adapter_init_ffp_attrib_ops
(
adapter
);
return
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