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
5e83efa1
Commit
5e83efa1
authored
Jul 14, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove the unused untransformed field from struct wined3d_device.
parent
fcf4303e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
12 deletions
+3
-12
state.c
dlls/wined3d/state.c
+2
-10
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-2
No files found.
dlls/wined3d/state.c
View file @
5e83efa1
...
...
@@ -4544,7 +4544,7 @@ static void vertexdeclaration(DWORD state_id, struct wined3d_stateblock *statebl
{
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
const
struct
wined3d_state
*
state
=
&
stateblock
->
state
;
struct
wined3d_device
*
device
=
stateblock
->
device
;
const
struct
wined3d_device
*
device
=
stateblock
->
device
;
BOOL
useVertexShaderFunction
=
use_vs
(
state
);
BOOL
usePixelShaderFunction
=
use_ps
(
state
);
BOOL
updateFog
=
FALSE
;
...
...
@@ -4556,15 +4556,7 @@ static void vertexdeclaration(DWORD state_id, struct wined3d_stateblock *statebl
if
(
transformed
!=
context
->
last_was_rhw
&&
!
useVertexShaderFunction
)
updateFog
=
TRUE
;
if
(
transformed
)
{
context
->
last_was_rhw
=
TRUE
;
}
else
{
/* Untransformed, so relies on the view and projection matrices */
context
->
last_was_rhw
=
FALSE
;
/* This turns off the Z scale trick to 'disable' viewport frustum clipping in rhw mode*/
device
->
untransformed
=
TRUE
;
}
context
->
last_was_rhw
=
transformed
;
/* Don't have to apply the matrices when vertex shaders are used. When vshaders are turned
* off this function will be called again anyway to make sure they're properly set
...
...
dlls/wined3d/wined3d_private.h
View file @
5e83efa1
...
...
@@ -1654,7 +1654,6 @@ struct wined3d_device
DWORD
vs_clipping
;
WORD
view_ident
:
1
;
/* true iff view matrix is identity */
WORD
untransformed
:
1
;
WORD
vertexBlendUsed
:
1
;
/* To avoid needless setting of the blend matrices */
WORD
isRecordingState
:
1
;
WORD
isInDraw
:
1
;
...
...
@@ -1665,7 +1664,7 @@ struct wined3d_device
WORD
useDrawStridedSlow
:
1
;
WORD
instancedDraw
:
1
;
WORD
filter_messages
:
1
;
WORD
padding
:
4
;
WORD
padding
:
5
;
BYTE
fixed_function_usage_map
;
/* MAX_TEXTURES, 8 */
...
...
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