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
e7cbb340
Commit
e7cbb340
authored
Jul 30, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Remove stateblock::set.*.
parent
f41ab3be
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
57 deletions
+22
-57
device.c
dlls/wined3d/device.c
+4
-26
glsl_shader.c
dlls/wined3d/glsl_shader.c
+4
-4
state.c
dlls/wined3d/state.c
+14
-26
stateblock.c
dlls/wined3d/stateblock.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+0
-1
No files found.
dlls/wined3d/device.c
View file @
e7cbb340
This diff is collapsed.
Click to expand it.
dlls/wined3d/glsl_shader.c
View file @
e7cbb340
...
...
@@ -343,12 +343,12 @@ void shader_glsl_load_constants(
/* Load DirectX 9 integer constants/uniforms for vertex shader */
shader_glsl_load_constantsI
(
vshader
,
gl_info
,
programId
,
MAX_CONST_I
,
stateBlock
->
vertexShaderConstantI
,
stateBlock
->
set
.
vertexShaderConstantsI
);
stateBlock
->
changed
.
vertexShaderConstantsI
);
/* Load DirectX 9 boolean constants/uniforms for vertex shader */
shader_glsl_load_constantsB
(
vshader
,
gl_info
,
programId
,
MAX_CONST_B
,
stateBlock
->
vertexShaderConstantB
,
stateBlock
->
set
.
vertexShaderConstantsB
);
stateBlock
->
changed
.
vertexShaderConstantsB
);
/* Upload the position fixup params */
pos
=
GL_EXTCALL
(
glGetUniformLocationARB
(
programId
,
"posFixup"
));
...
...
@@ -374,12 +374,12 @@ void shader_glsl_load_constants(
/* Load DirectX 9 integer constants/uniforms for pixel shader */
shader_glsl_load_constantsI
(
pshader
,
gl_info
,
programId
,
MAX_CONST_I
,
stateBlock
->
pixelShaderConstantI
,
stateBlock
->
set
.
pixelShaderConstantsI
);
stateBlock
->
changed
.
pixelShaderConstantsI
);
/* Load DirectX 9 boolean constants/uniforms for pixel shader */
shader_glsl_load_constantsB
(
pshader
,
gl_info
,
programId
,
MAX_CONST_B
,
stateBlock
->
pixelShaderConstantB
,
stateBlock
->
set
.
pixelShaderConstantsB
);
stateBlock
->
changed
.
pixelShaderConstantsB
);
/* Upload the environment bump map matrix if needed. The needsbumpmat member specifies the texture stage to load the matrix from.
* It can't be 0 for a valid texbem instruction.
...
...
dlls/wined3d/state.c
View file @
e7cbb340
...
...
@@ -652,32 +652,20 @@ state_stencil(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3DContext *c
return
;
}
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILENABLE
]
)
onesided_enable
=
stateblock
->
renderState
[
WINED3DRS_STENCILENABLE
];
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
]
)
twosided_enable
=
stateblock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
];
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILFUNC
]
)
if
(
!
(
func
=
CompareFunc
(
stateblock
->
renderState
[
WINED3DRS_STENCILFUNC
])
)
)
func
=
GL_ALWAYS
;
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_CCW_STENCILFUNC
]
)
if
(
!
(
func_ccw
=
CompareFunc
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILFUNC
])
)
)
func
=
GL_ALWAYS
;
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILREF
]
)
ref
=
stateblock
->
renderState
[
WINED3DRS_STENCILREF
];
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILMASK
]
)
mask
=
stateblock
->
renderState
[
WINED3DRS_STENCILMASK
];
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILFAIL
]
)
stencilFail
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILFAIL
]);
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILZFAIL
]
)
depthFail
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILZFAIL
]);
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_STENCILPASS
]
)
stencilPass
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILPASS
]);
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_CCW_STENCILFAIL
]
)
stencilFail_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILFAIL
]);
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_CCW_STENCILZFAIL
]
)
depthFail_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILZFAIL
]);
if
(
stateblock
->
set
.
renderState
[
WINED3DRS_CCW_STENCILPASS
]
)
stencilPass_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILPASS
]);
onesided_enable
=
stateblock
->
renderState
[
WINED3DRS_STENCILENABLE
];
twosided_enable
=
stateblock
->
renderState
[
WINED3DRS_TWOSIDEDSTENCILMODE
];
if
(
!
(
func
=
CompareFunc
(
stateblock
->
renderState
[
WINED3DRS_STENCILFUNC
])
)
)
func
=
GL_ALWAYS
;
if
(
!
(
func_ccw
=
CompareFunc
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILFUNC
])
)
)
func
=
GL_ALWAYS
;
ref
=
stateblock
->
renderState
[
WINED3DRS_STENCILREF
];
mask
=
stateblock
->
renderState
[
WINED3DRS_STENCILMASK
];
stencilFail
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILFAIL
]);
depthFail
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILZFAIL
]);
stencilPass
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_STENCILPASS
]);
stencilFail_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILFAIL
]);
depthFail_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILZFAIL
]);
stencilPass_ccw
=
StencilOp
(
stateblock
->
renderState
[
WINED3DRS_CCW_STENCILPASS
]);
TRACE
(
"(onesided %d, twosided %d, ref %x, mask %x, "
"GL_FRONT: func: %x, fail %x, zfail %x, zpass %x "
...
...
dlls/wined3d/stateblock.c
View file @
e7cbb340
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
e7cbb340
...
...
@@ -1283,7 +1283,6 @@ struct IWineD3DStateBlockImpl
/* Array indicating whether things have been set or changed */
SAVEDSTATES
changed
;
SAVEDSTATES
set
;
struct
list
set_vconstantsF
;
struct
list
set_pconstantsF
;
...
...
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