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
5b36e292
Commit
5b36e292
authored
Oct 28, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Access reg_maps though ins->ctx in get_bool_const().
parent
ac2805e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
arb_program_shader.c
dlls/wined3d/arb_program_shader.c
+3
-2
No files found.
dlls/wined3d/arb_program_shader.c
View file @
5b36e292
...
...
@@ -5034,13 +5034,14 @@ static const SHADER_HANDLER shader_arb_instruction_handler_table[WINED3DSIH_TABL
static
inline
BOOL
get_bool_const
(
const
struct
wined3d_shader_instruction
*
ins
,
IWineD3DBaseShaderImpl
*
This
,
DWORD
idx
)
{
BOOL
vshader
=
shader_is_vshader_version
(
This
->
baseShader
.
reg_maps
.
shader_version
.
type
);
const
struct
shader_reg_maps
*
reg_maps
=
ins
->
ctx
->
reg_maps
;
BOOL
vshader
=
shader_is_vshader_version
(
reg_maps
->
shader_version
.
type
);
WORD
bools
=
0
;
WORD
flag
=
(
1
<<
idx
);
const
local_constant
*
constant
;
struct
shader_arb_ctx_priv
*
priv
=
ins
->
ctx
->
backend_data
;
if
(
This
->
baseShader
.
reg_maps
.
local_bool_consts
&
flag
)
if
(
reg_maps
->
local_bool_consts
&
flag
)
{
/* What good is a if(bool) with a hardcoded local constant? I don't know, but handle it */
LIST_FOR_EACH_ENTRY
(
constant
,
&
This
->
baseShader
.
constantsB
,
local_constant
,
entry
)
...
...
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