Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
virgl-es
mesa
Commits
dc275157
Commit
dc275157
authored
Aug 25, 2010
by
Marek Olšák
Browse files
r300g: fix potentially uninitialized variables in create_rs_state
It had no impact on correctness, though. Reported by Vinson Lee.
parent
92cfcc2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/gallium/drivers/r300/r300_state.c
View file @
dc275157
...
...
@@ -940,9 +940,9 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
uint32_t
stuffing_enable
;
/* R300_GB_ENABLE: 0x4008 */
/* Point sprites texture coordinates, 0: lower left, 1: upper right */
float
point_texcoord_left
;
/* R300_GA_POINT_S0: 0x4200 */
float
point_texcoord_left
=
0
;
/* R300_GA_POINT_S0: 0x4200 */
float
point_texcoord_bottom
=
0
;
/* R300_GA_POINT_T0: 0x4204 */
float
point_texcoord_right
;
/* R300_GA_POINT_S1: 0x4208 */
float
point_texcoord_right
=
1
;
/* R300_GA_POINT_S1: 0x4208 */
float
point_texcoord_top
=
0
;
/* R300_GA_POINT_T1: 0x420c */
CB_LOCALS
;
...
...
@@ -1064,9 +1064,6 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
R300_GB_TEX_ST
<<
(
R300_GB_TEX0_SOURCE_SHIFT
+
(
i
*
2
));
}
point_texcoord_left
=
0
.
0
f
;
point_texcoord_right
=
1
.
0
f
;
switch
(
state
->
sprite_coord_mode
)
{
case
PIPE_SPRITE_COORD_UPPER_LEFT
:
point_texcoord_top
=
0
.
0
f
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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