| 198 GLuint i; |
198 GLuint i; |
| 199 |
199 |
| 200 /* XXX doing a linear search on a string key'd list is pretty lame, |
200 /* XXX doing a linear search on a string key'd list is pretty lame, |
| 201 but it works and is fast enough for now. */ |
201 but it works and is fast enough for now. */ |
| 202 for (i = 0; i < model->nummaterials; i++) { |
202 for (i = 0; i < model->nummaterials; i++) { |
| 203 if (!strcmp(model->materials[i].name, name)) |
203 if (purple_strequal(model->materials[i].name, name)) |
| 204 goto found; |
204 goto found; |
| 205 } |
205 } |
| 206 |
206 |
| 207 /* didn't find the name, so print a warning and return the default |
207 /* didn't find the name, so print a warning and return the default |
| 208 material (0). */ |
208 material (0). */ |