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
b8b12d2d
Commit
b8b12d2d
authored
Apr 28, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Mask set bool/int constants with bool/int constants read.
parent
9db67a59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
20 deletions
+8
-20
glsl_shader.c
dlls/wined3d/glsl_shader.c
+8
-20
No files found.
dlls/wined3d/glsl_shader.c
View file @
b8b12d2d
...
...
@@ -558,18 +558,12 @@ static void shader_glsl_load_constants(
prog
->
vuniformF_locations
,
&
priv
->
vconst_heap
,
priv
->
stack
,
constant_version
);
/* Load DirectX 9 integer constants/uniforms for vertex shader */
if
(
vshader
->
baseShader
.
reg_maps
.
integer_constants
)
{
shader_glsl_load_constantsI
(
vshader
,
gl_info
,
prog
->
vuniformI_locations
,
stateBlock
->
vertexShaderConstantI
,
stateBlock
->
changed
.
vertexShaderConstantsI
);
}
shader_glsl_load_constantsI
(
vshader
,
gl_info
,
prog
->
vuniformI_locations
,
stateBlock
->
vertexShaderConstantI
,
stateBlock
->
changed
.
vertexShaderConstantsI
&
vshader
->
baseShader
.
reg_maps
.
integer_constants
);
/* Load DirectX 9 boolean constants/uniforms for vertex shader */
if
(
vshader
->
baseShader
.
reg_maps
.
boolean_constants
)
{
shader_glsl_load_constantsB
(
vshader
,
gl_info
,
programId
,
stateBlock
->
vertexShaderConstantB
,
stateBlock
->
changed
.
vertexShaderConstantsB
);
}
shader_glsl_load_constantsB
(
vshader
,
gl_info
,
programId
,
stateBlock
->
vertexShaderConstantB
,
stateBlock
->
changed
.
vertexShaderConstantsB
&
vshader
->
baseShader
.
reg_maps
.
boolean_constants
);
/* Upload the position fixup params */
GL_EXTCALL
(
glUniform4fvARB
(
prog
->
posFixup_location
,
1
,
&
deviceImpl
->
posFixup
[
0
]));
...
...
@@ -585,18 +579,12 @@ static void shader_glsl_load_constants(
prog
->
puniformF_locations
,
&
priv
->
pconst_heap
,
priv
->
stack
,
constant_version
);
/* Load DirectX 9 integer constants/uniforms for pixel shader */
if
(
pshader
->
baseShader
.
reg_maps
.
integer_constants
)
{
shader_glsl_load_constantsI
(
pshader
,
gl_info
,
prog
->
puniformI_locations
,
stateBlock
->
pixelShaderConstantI
,
stateBlock
->
changed
.
pixelShaderConstantsI
);
}
shader_glsl_load_constantsI
(
pshader
,
gl_info
,
prog
->
puniformI_locations
,
stateBlock
->
pixelShaderConstantI
,
stateBlock
->
changed
.
pixelShaderConstantsI
&
pshader
->
baseShader
.
reg_maps
.
integer_constants
);
/* Load DirectX 9 boolean constants/uniforms for pixel shader */
if
(
pshader
->
baseShader
.
reg_maps
.
boolean_constants
)
{
shader_glsl_load_constantsB
(
pshader
,
gl_info
,
programId
,
stateBlock
->
pixelShaderConstantB
,
stateBlock
->
changed
.
pixelShaderConstantsB
);
}
shader_glsl_load_constantsB
(
pshader
,
gl_info
,
programId
,
stateBlock
->
pixelShaderConstantB
,
stateBlock
->
changed
.
pixelShaderConstantsB
&
pshader
->
baseShader
.
reg_maps
.
boolean_constants
);
/* 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.
...
...
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