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
2f67b139
Commit
2f67b139
authored
Sep 18, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 18, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Set the initial primitive type to WINED3D_PT_UNDEFINED.
parent
74ab8e8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
device.c
dlls/wined3d/device.c
+3
-1
stateblock.c
dlls/wined3d/stateblock.c
+2
-0
No files found.
dlls/wined3d/device.c
View file @
2f67b139
...
...
@@ -90,7 +90,8 @@ GLenum gl_primitive_type_from_d3d(enum wined3d_primitive_type primitive_type)
default:
FIXME
(
"Unhandled primitive type %s
\n
"
,
debug_d3dprimitivetype
(
primitive_type
));
return
GL_NONE
;
case
WINED3D_PT_UNDEFINED
:
return
~
0u
;
}
}
...
...
@@ -130,6 +131,7 @@ static enum wined3d_primitive_type d3d_primitive_type_from_gl(GLenum primitive_t
default:
FIXME
(
"Unhandled primitive type %s
\n
"
,
debug_d3dprimitivetype
(
primitive_type
));
case
~
0u
:
return
WINED3D_PT_UNDEFINED
;
}
}
...
...
dlls/wined3d/stateblock.c
View file @
2f67b139
...
...
@@ -1121,6 +1121,8 @@ static void state_init_default(struct wined3d_state *state, const struct wined3d
TRACE
(
"state %p, gl_info %p.
\n
"
,
state
,
gl_info
);
state
->
gl_primitive_type
=
~
0u
;
/* Set some of the defaults for lights, transforms etc */
state
->
transforms
[
WINED3D_TS_PROJECTION
]
=
identity
;
state
->
transforms
[
WINED3D_TS_VIEW
]
=
identity
;
...
...
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