projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drisw: Move pointer dereferences to after NULL checks.
[mesa.git]
/
src
/
mesa
/
state_tracker
/
st_atom_shader.c
diff --git
a/src/mesa/state_tracker/st_atom_shader.c
b/src/mesa/state_tracker/st_atom_shader.c
index ea16719ba0e899b20ddef695fa3921c70264df9b..ad151edf3bdc2575dacf75b55573babc3795bd6c 100644
(file)
--- a/
src/mesa/state_tracker/st_atom_shader.c
+++ b/
src/mesa/state_tracker/st_atom_shader.c
@@
-59,7
+59,7
@@
static void
translate_fp(struct st_context *st,
struct st_fragment_program *stfp)
{
- if (!stfp->
state
.tokens) {
+ if (!stfp->
tgsi
.tokens) {
assert(stfp->Base.Base.NumInstructions > 0);
st_translate_fragment_program(st, stfp);